You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Description
Please add something like fqdn or application_url as output attribute to azurerm_container_app.
Whereas the most useful output would be the Application URL as exposed in the Azure Portal, or the application FQDN, meaning the FQDN of the app with no mention of revision at all. This is of the form my-container-app.gentleluke-8f70498d.uksouth.azurecontainerapps.io Notice there is no mention of any revision ID here. This points to the latest revision too. But this FQDN is stable and always correct, whereas the latest revision FQDN will change everytime a new revision is created.
Please add something like fqdn or application_url as output attribute to azurerm_container_app.
Oh actually nevermind, I found what is the correct attribute that already exists: this FQDN I was looking for is actually an attribute of the ingress bock, you can get it like this:
azurerm_container_app.main.ingress[0].fqdn
I don't think there needs to be anything new added then, this issue can probably be closed.
Is there an existing issue for this?
Community Note
Description
Please add something like
fqdn
orapplication_url
as output attribute toazurerm_container_app
.When deploying a Azure Container App (azurerm_container_app), the only Terraform attribute in output for the app's FQDN is
latest_revision_fqdn
(https://registry.terraform.io/providers/hashicorp/azurerm/3.111.0/docs/resources/container_app#latest_revision_fqdn)`. This is a value of the form e.g.my-container-app--52twja6.gentleluke-8f70498d.uksouth.azurecontainerapps.io:6379
. Notice the--52twja6
which corresponds to the latest revision ID.Whereas the most useful output would be the Application URL as exposed in the Azure Portal, or the application FQDN, meaning the FQDN of the app with no mention of revision at all. This is of the form
my-container-app.gentleluke-8f70498d.uksouth.azurecontainerapps.io
Notice there is no mention of any revision ID here. This points to the latest revision too. But this FQDN is stable and always correct, whereas the latest revision FQDN will change everytime a new revision is created.Please add something like
fqdn
orapplication_url
as output attribute toazurerm_container_app
.New or Affected Resource(s)/Data Source(s)
azurerm_container_app
Potential Terraform Configuration
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/3.111.0/docs/resources/container_app#latest_revision_fqdn
The text was updated successfully, but these errors were encountered: