Open vienleidl opened 4 months ago
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID.
Hi @vienleidl
Thanks for asking this question.
You can try: CONTAINER_APP_ENV_DNS_SUFFIX
For example:
SERVER_HOST=nginx.$(CONTAINER_APP_ENV_DNS_SUFFIX)
Where did you get ##[error]time="2024-05-17T05:09:11Z" level=warning msg="The \"AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN\" variable is not set. Defaulting to a blank string."
?
Please try CONTAINER_APP_ENV_DNS_SUFFIX
and check if this error still there.
Thanks!
Describe the bug
After run the az container compose create command with the following docker-compose file, the value of SERVER_HOST environment var hasn't been applied correctly. The result is SERVER_HOST => nginx. in Container App's environment variables.
If it's updated as nginx.$$AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN => the result will be SERVER_HOST => nginx.$
Related command
az container compose create
Errors
##[error]time="2024-05-17T05:09:11Z" level=warning msg="The \"AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN\" variable is not set. Defaulting to a blank string."
Issue script & Debug output
##[error]time="2024-05-17T05:09:11Z" level=warning msg="The \"AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN\" variable is not set. Defaulting to a blank string."
Expected behavior
Environment Summary
Additional context
Reference: https://techcommunity.microsoft.com/t5/apps-on-azure-blog/accelerating-azure-container-apps-with-the-azure-cli-and-compose/ba-p/3516636#:~:text=There%20are%20also%20two%20special%20environment%20variables%20available%20at%20the%20time%20of%20evaluation%20that%20are%20specific%20to%20Azure%20Container%20Apps.%C2%A0%20AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN%C2%A0contains%20the%20default%20domain%20name%20for%20a%20Container%20Apps%20environment.