-
Notifications
You must be signed in to change notification settings - Fork 300
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
azuread_application: DuplicateValue #269
Comments
Hi @magne, just want to check that I understand - are you suggesting we validate values for roles and scopes to check for duplicates before attempting to set them for an application? This is indeed a limitation of Microsoft's implementation. In case it helps, one way I've seen people work around this is to use different app registrations for scopes and roles. |
@manicminer Yes, I think the provider should validate the values. It is a limitation of Azure AD, and it should be easy for the provider to validate. It may save som poor soul a lot of time, as the Azure AD concepts are, at best, confusing. There is no indication that app_roles and oauth2_permissions live in the same namespace. |
Thanks @magne, that makes sense. I'll look at adding that. |
This has been released in version 0.11.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azuread" {
version = "~> 0.11.0"
}
# ... other configuration ... |
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 AzureAD Provider) Version
Terraform v0.12.26
Affected Resource(s)
azuread_application
Terraform Configuration Files
Expected Behavior
Expected application to be created
Actual Behavior
Terraform failed with error:
The reason is that the value of the
oauth2_permission
andapp_role
is the same (API.All
). If you're not aware that these occupy the same namespace, this is an error that will take some time to figure out (from own exerience :-(). At the same time, this should be quite easy to validate before sending the request to Azure AD.Steps to Reproduce
terraform init
terraform apply
The text was updated successfully, but these errors were encountered: