role_definition has a permadiff when referencing a resource group in scope
#8251
Labels
service/roles
upstream/microsoft
Indicates that there's an upstream issue blocking this issue/PR
v/2.x (legacy)
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_role_definition
Terraform Configuration Files
Debug Output
output from the role_definition create
https://gist.github.com/chrisst/bb60c47e1bc53e4522caaa1da610ad29
Expected Behavior
I would expect that the resource group scope would apply and not cause a diff immediately after the apply.
Actual Behavior
The resource group doesn't get recorded in the scope variable and instead it just records the subscription id without the resource group appended. This then creates a diff and then tries to reapply that scope recreating the resource.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: