terraform Error: building account: getting authenticated object ID: listing Service Principals: autorest.DetailedError

 

If you're getting the following error when running terraform plan, then you hit an issue with azurerm that is old and not supported anymore. The error is really confusing to start with. After I upgraded my azurerm 


Error: building account: getting authenticated object ID: listing Service Principals: autorest.DetailedError{Original:(*azure.RequestError)(0xc001ab65a0), PackageType:"graphrbac.ServicePrincipalsClient", Method:"List", StatusCode:403, Message:"Failure responding to request", ServiceError:[]uint8(nil), Response:(*http.Response)(0xc001ab6510)}

So you need to update 

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 4.0"  <-- newer version available 
    }
  }

  required_version = ">= 1.0.0"
}

provider "azurerm" {
  features {}
}

Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error