Added CLI command to bind a certificate to Azure Container App.

This commit is contained in:
2025-08-15 20:55:47 +02:00
parent f21739c250
commit d7fb56eb41

View File

@@ -1,4 +1,4 @@
## Azure Image Chooser # Azure Image Chooser
Azure Image Chooser is a [Streamlit](https://streamlit.io) application that allows users to select Azure VM images from the Azure Marketplace. Azure Image Chooser is a [Streamlit](https://streamlit.io) application that allows users to select Azure VM images from the Azure Marketplace.
@@ -14,3 +14,15 @@ python3 -m venv .venv
``` ```
You have to be authenticated in Azure CLI. The app will block terminal and start a web server. Follow the instructions in the terminal to access the app. You have to be authenticated in Azure CLI. The app will block terminal and start a web server. Follow the instructions in the terminal to access the app.
## Add Certificate Binding
```shell
az containerapp hostname bind \
--hostname $DOMAIN_NAME \
-g $RESOURCE_GROUP \
-n $CONTAINER_APP \
--environment $ENVIRONMENT \
--certificate $CERTIFICATE_LOWERCASE_NAME \
--validation-method CNAME
```