Azure / AKS-Landing-Zone-Accelerator

Official repository for the AKS Landing Zone Accelerator program
MIT License
207 stars 196 forks source link

terraform issue when running in cloud shell #125

Closed victorgu-github closed 1 month ago

victorgu-github commented 2 months ago

Describe the bug terraform plan runs forever the issue is from hashicorp/azurerm version = "= 3.44.1" which is too old. Error: Unable to list provider registration status, it is possible that this is due to invalid credentials or the service principal does not have permission to use the Resource Manager API, Azure error: autorest/Client#Do: Preparing request failed: StatusCode=0 -- Original Error: preparing auxiliary tokens for request: auxiliary tokens not supported in Cloud Shell

known issue https://github.com/hashicorp/terraform-provider-azurerm/issues/20674

To Reproduce Steps to reproduce the behavior: Connect to your azure subscription using https://portal.azure.com/ Open Azure Cloud Shell Create a folder terraform Create a folder terraform/modules/azure/create-resource-group 4.1. Create a file inside this folder with name main.tf and contents are in Terraform Configuration files of this bug. (File 1) Create a folder terraform/testrg 5.1 Create a file inside this folder with name main.tf and contents are in Terraform Configuration files of this bug. (File 2) terraform init terraform apply

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

victorgu-github commented 2 months ago

@mosabami i've created a pr to fix. pls review at https://github.com/Azure/AKS-Landing-Zone-Accelerator/pull/126

victorgu-github commented 1 month ago

bug fixed after merging!