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
The ARM Resource ID for a Resource Group includes the segment resourceGroups rather than resource_groups - which is why this is failing, as such updating this should fix this. Since the casing on ARM ID's is pedantic across various parts of Azure, we highly recommend using the Data Sources to look this value up rather than hard-coding it - such as in this case by using the azurerm_resource_group Data Source.
This forum is intended to be used for feature enhancements and bugs in the Azure Provider - so that we can keep this forum focused on that we instead ask that broader questions are raised using one of the Community Resources.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Terraform: 1.0.0
Azure Provider: 2.64.0
Affected Resource(s)
azurerm_role_assignment
Terraform Configuration Files
Debug Output
https://gist.github.com/angusjellis/96b8e2aec3e4dfe489f839e4c3b4a022.js
Expected Behaviour
I should be able to run terraform apply, and add a role assignment scoped to a 'hardcoded' resource group id
Actual Behaviour
Terraform is not able to assign a role to a 'hardcoded' resource group id. It errors out with a 400 code.
Steps to Reproduce
Create an identity role assignment that is scoped to a hardcoded resource group id.
terraform apply
Important Factoids
While I'm raising this on the 2.64.0 version of the provider, I've seen the issue on 2.63.0, 2.62.0, 2.62.1, 2.61.0 as well.
References
Possibly related to this closed issue
The text was updated successfully, but these errors were encountered: