-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Bug creating 'azurerm_role_assignment' and adding it to state #12195
Comments
I have also seen this issue - I think it may be related to #1726. I hacked around it by deleting the resource in the state and the portal; tf was then able to recreate the resource on the next apply. |
hey @OmerLaza Unfortunately this was a regression in v2.62.0 which has since been fixed in v2.62.1 - as such you'd need to upgrade to that release (or the latest release v2.63.0) - but since this regressions been fixed I'm going to close this issue for the moment. Thanks! |
@tombuildsstuff Thanks 😄 |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.0
on windows_amd64
Affected Resource(s)
azurerm.azurerm_role_assignment
Terraform Configuration Files
Full TF here
https://gist.github.com/OmerLaza/6d68de4382e8f2b14e100595774a9b22
Debug Output
https://gist.github.com/OmerLaza/6d68de4382e8f2b14e100595774a9b22
Panic Output
When applying changes to azurerm_role_assignment.example, provider "provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced an unexpected new value: Root │ resource was present, but now absent.Expected Behaviour
TF creating the resources properly and adding then to the state file.
Actual Behaviour
The
apply
ending in an error (yet creating theazurerm_role_assignment
, but not adding it to the state.Steps to Reproduce
terraform apply
the TF file provided earlier.The text was updated successfully, but these errors were encountered: