Prisma Cloud: Azure 온보딩 Terraform "오류: Azure CLI 에서 권한 부여 토큰을 가져오는 중 오류 발생"
4814
Created On 09/15/22 13:17 PM - Last Modified 07/29/25 14:55 PM
Objective
"Error: Error obtaining Authorization Token from the Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1: ERROR: Tenant shouldn't be specified for Cloud Shell account"
with provider["registry.terraform.io/hashicorp/azuread"],
? on terraform (1).tf line 91, in provider "azuread":
? 91: provider "azuread" {
When running the terraform commands in your Azure Cloud shell during the onboarding process.Environment
- 프리즈마 클라우드
- Azure 온보딩
Procedure
Microsoft 측의 문제인 듯합니다. 사용자 Terraform을 실행하면 CLI (명령줄 인터페이스)가 토큰 정보를 구문 분석하지 않고 오류가 발생합니다.
이 문제를 해결하는 단계:
- Azure에서 CLI (Cloud Shell)를 열고 다음 명령을 실행하여 Azure에 로그인 .
$ az login
- 링크 ? https://microsoft.com/devicelogin ? 및 인증 코드가 표시됩니다.
- 브라우저 사용하여 링크를 열고 코드를 입력하여 인증하세요.
- 이제 온보딩을 위해 Terraform 명령을 실행할 수 있습니다.
$ terraform init $ terraform apply
Additional Information
Terraform을 통해 Azure 계정을 온보딩하는 방법에 대한 설명서를 여기에서 확인하세요.