Error: Error ensuring Resource Providers are registered.
│ Terraform automatically attempts to register the Resource Providers it supports to
│ ensure it’s able to provision resources.
│ If you don’t have permission to register Resource Providers you may wish to use the
│ “skip_provider_registration” flag in the Provider block to disable this functionality.
│ Please note that if you opt out of Resource Provider Registration and Terraform tries
│ to provision a resource from a Resource Provider which is unregistered, then the errors
│ may appear misleading - for example:
│
│ > API version 2019-XX-XX was not found for Microsoft.Foo
│
│ Could indicate either that the Resource Provider “Microsoft.Foo” requires registration,
│ but this could also indicate that this Azure Region doesn’t support this API version.
│ More information on the “skip_provider_registration” flag can be found here:
│
│ Original Error: populating Resource Provider cache: listing Resource Providers: loading the initial page: providers.ProvidersClient#List: Failure responding to request: StatusCode=403 – Original Error: autorest/azure: Service returned an error. Status=403 Code=“AuthorizationFailed” Message=“The client ‘430f391c-df15-42e0-9418-6d6ccc480911’ with object id ‘430f391c-df15-42e0-9418-6d6ccc480911’ does not have authorization to perform action ‘Microsoft.Resources/subscriptions/providers/read’ over scope ‘/subscriptions/df452065-41cd-4d1d-a7cd-175d2f23059b’ or the scope is invalid. If access was recently granted, please refresh your credentials.”
│ with provider[“Terraform Registry”].PROD,
│ on providers.tf line 34, in provider “azurerm”:
│ 34: provider “azurerm” {
##[warning]Can’t find loc string for key: TerraformPlanFailed
##[error]Error: TerraformPlanFailed 1
Finishing: Terraform Plan - Test