-
Notifications
You must be signed in to change notification settings - Fork 294
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_certificate resource can't find the Azure App (404 error) #794
Comments
Hi @sgrunt91, thanks for reporting this. Are you perhaps authenticating via Azure CLI? The missing tenant ID may be responsible here if your user account has access to multiple tenants and you are trying to manage a tenant other than your home tenant. However the fact you say you don't see this issue with the I will keep trying to reproduce and also fix the missing tenant ID - hopefully this will resolve the problem. |
Hello @manicminer , thanks for your answer ! :-) As you mention this, here are more information about my use case:
Don't hesitate to ask me if you need more information and thank you again ! |
@sgrunt91 Thanks for following up and validating my assumption :) I've opened a PR to fix the missing tenant ID which I'm hoping will resolve your issue. If you're able to compile and test this any feedback would be appreciated. But otherwise this fix will go out in this week's release. |
This functionality has been released in v2.23.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Hi @manicminer I'm just writing this comment to confirm the new release fixes my issue ! |
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 AzureAD Provider) Version
Terraform v1.0.11
hashicorp/azuread v2.22.0
Affected Resource(s)
azuread_application_certificate
Terraform Configuration Files
Debug Output
https://gist.github.com/sgrunt91/e8d3b43c6452919c3f1cea75f09cf8df
Panic Output
None
Expected Behavior
The certificate should be added to the Azure App in "Certificates & secrets" section.
Actual Behavior
The provider can't find the Azure App and don't add the certificate.
It works great for similar resource like
azuread_application_password
It seems that the URL used to retriece Azure App data from graph.microsoft.com have a missing variable between /beta/ and /applications/:
GET https://graph.microsoft.com/beta//applications/2a6f639e-4067-45f2-bc7b-a5dcdc850
Maybe the Tenant ID is required.
Steps to Reproduce
terraform apply
Important Factoids
None
References
The text was updated successfully, but these errors were encountered: