-
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
azurerm_role_assignment fails due to use of deprecated 2018-01-01-preview api #9569
Comments
Not sure if you've resolved this already @CoaxVex, but it appears the I ran into the exact same error with a syntactically incorrect |
hi @CoaxVex Thanks for opening this issue / apologies for the delayed response here! As @philbal611 has mentioned, unfortunately these errors come from the Azure API, where different versions of the API are available at To your question regarding the Since this should be fixed by updating the Terraform Configuration being used here, as @philbal611 has suggested - I'm going to close this issue for the moment. I'm going to open a separate PR to add validation to the scope too, since we should be able to validate this is a Management Group, Subscription, Resource Group or otherwise a Resource ID - which should help (somewhat) in the future. Thanks! |
This commit introduces validation to the `scope` field, validating that it's either a Management Group ID, Resource Group ID, Subscription ID or otherwise a Resource ID - to workaround the API usability issues identified in #9569. This isn't perfect, but the error messages coming back from the API are particularly unhelpful to users unfamiliar with how the API works.
This commit introduces validation to the `scope` field, validating that it's either a Management Group ID, Resource Group ID, Subscription ID or otherwise a Resource ID - to workaround the API usability issues identified in #9569. This isn't perfect, but the error messages coming back from the API are particularly unhelpful to users unfamiliar with how the API works.
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.13.5
Affected Resource(s)
azurerm_role_assignment
Terraform Configuration Files
Panic Output
Expected Behaviour
Create role assignment
Actual Behaviour
See Panic Output.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: