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{
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