You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Error: populating Resource Provider cache: listing Resource Providers: loading results: unexpected status 403 (403 Forbidden) with error: AuthorizationFailed: The client '00000000-0000-0000-0000-000000000000' with object id '00000000-0000-0000-0000-000000000000' does not have authorization to perform action 'Microsoft.Resources/subscriptions/providers/read' over scope '/subscriptions/00000000-0000-0000-0000-000000000000' or the scope is invalid. If access was recently granted, please refresh your credentials.
│
│ with provider["registry.terraform.io/hashicorp/azurerm"].az_iaas,
│ on providers.tf line 6, in provider "azurerm":
│ 14: provider "azurerm" {
Expected Behaviour
This alias not being used, in this case it fails because the identity that does do the actual TF plan, has no permissions on that specific subscription.
Actual Behaviour
Alias is used, in our case wil give an error because there's no permissions to that subscription
Steps to Reproduce
Create provider alias
Give no permission on the subscription configured in the alias
Create no specific resources for that alias
It should ignore the provider alias, but it fails
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
I do not think adding an env variable is a sensible solution but rather a costly workaround. I suppose there is a good reason that var's default value is set to TRUE and have been working for all us for many years.
Is there an existing issue for this?
Community Note
Terraform Version
1.9.3
AzureRM Provider Version
3.114.0
Affected Resource(s)/Data Source(s)
provider block
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
This alias not being used, in this case it fails because the identity that does do the actual TF plan, has no permissions on that specific subscription.
Actual Behaviour
Alias is used, in our case wil give an error because there's no permissions to that subscription
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: