-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot update or delete an azurerm_role_definition #1540
Comments
The workaround for this is to delete the affected resource from the |
can confirm I also have this problem with Terraform v0.11.7 and provider.azurerm v1.9.0 edit: @Supermathie for the workaround I assume you meant the Azure CLI? If so, I did and it did not work. More specifically, I applied, tried to destroy, it failed, so I deleted the custom role with the CLI, then I applied again and finally tried to destroy but it failed: Error: Error applying plan:
1 error(s) occurred:
* azurerm_role_definition.newCustomRole (destroy): 1 error(s) occurred:
* azurerm_role_definition.newCustomRole: Error deleting Role Definition "": authorization.RoleDefinitionsClient#Delete: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidRoleDefinitionId" Message="The role definition ID '' is not valid." |
@guillaumedsde oops - yes I meant the Azure Portal or CLI |
Still an issue in 1.11.0. Azure CLI to delete a role: For the record, tainting the resource in terraform as a means of recreating it doesn't appear to work either.
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
original state:
and the update attempt:
The problem is that terraform is unable to update or delete existing
azurerm_role_definition
resources:update attempt:
deletion attempt:
Debug Output
(I can get a full sanitized output if need be)
modify attempt:
References
Ø
The text was updated successfully, but these errors were encountered: