Prisma Cloud: Azure Onboarding von Terraform „Fehler: Fehler beim Abrufen des Autorisierungstokens von der Azure CLI“
4850
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
- Prisma Cloud
- Azure-Onboarding
Procedure
Das Problem scheint auf Seiten von Microsoft zu liegen. Wenn ein Benutzer Terraform ausführt, analysiert die CLI (Command Line Interface) die Token-Informationen nicht und es treten Fehler auf.
Schritte zum Beheben dieses Problems:
- Öffnen Sie CLI (Cloud Shell) in Azure und führen Sie den folgenden Befehl aus, um sich bei Azure Anmeldung
$ az login
- Es wird der Link „ https://microsoft.com/devicelogin “ und der Authentifizierungscode angezeigt.
- Öffnen Sie den Link in Ihrem Browser und geben Sie den Code zur Authentifizierung ein
- Jetzt können wir Terraform-Befehle für das Onboarding ausführen
$ terraform init $ terraform apply
Additional Information
Sehen Sie sich hier unsere Dokumentation zum Onboarding Ihres Azure-Kontos über Terraform an.