-
Notifications
You must be signed in to change notification settings - Fork 301
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 fails when using Snowflake application template due to not being able to disable app_roles #950
Comments
Hi @froblesmartin, thanks for reporting this. When you tried to add the app roles to your configuration, did you ensure the individual role IDs were identical? Unfortunately with our current implementation, the provider will always try to set the app roles per your configuration and so in the case of marketplace apps where the app is homed in a tenant you cannot access, this will fail unless you match the configuration exactly. If you can post the diff and your config, perhaps it will offer some more clues as to how you can proceed. Please be aware though, that it may not be possible to support a particular application due to this constraint within the provider. We are planning to address this in the next major version of the provider as it will require some other potentially breaking changes. |
Yes, I used the same IDs as the existing ones from the template.
For now, I am just creating the Azure AD App manually as it is just a once time configuration.
Cool! Thanks for letting me know. :) |
We are working on a new resource Our recommendation will be to adopt this new resource for launching applications from gallery templates, particularly in cases where the existing |
Community Note
Terraform (and AzureAD Provider) Version
terraform -v: v1.3.4
hashicorp/azuread: latest (2.31.0)
Affected Resource(s)
azuread_application_template
azuread_application
Terraform Configuration Files
Debug Output
None (for now)
Panic Output
None
Expected Behavior
Configure the Azure AD Application Registration and the Azure AD Enterprise Application based on the Snowflake application template from the marketplace.
Actual Behavior
Tha apply fails when trying to disable the App Roles (which I think come by default due to using the Snowflake application template from the marketplace. Terraform tries to disable the App Roles (step that it shouldn't do maybe?) and fails because it can not find the Azure AD Application which it is creating in the same resource itself.
I tried defining the App Roles that are automatically configured to try to avoid Terraform disabling them, but that does not change anything.
Terraform plan (after the previous failure, but basically deletes the previous Azure AD Application Registration and creates a new one, which fails again):
Expand ...
Terraform apply:
The text was updated successfully, but these errors were encountered: