Updated certificate binding instructions.
This commit is contained in:
12
README.md
12
README.md
@@ -18,11 +18,9 @@ You have to be authenticated in Azure CLI. The app will block terminal and start
|
|||||||
## Add Certificate Binding
|
## Add Certificate Binding
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
az containerapp hostname bind \
|
# Find the certificate name
|
||||||
--hostname $DOMAIN_NAME \
|
CERTIFICATE_LOWERCASE_NAME=$(az containerapp env certificate list -g $RESOURCE_GROUP -n $ENVIRONMENT --query '[].name' -o tsv)
|
||||||
-g $RESOURCE_GROUP \
|
|
||||||
-n $CONTAINER_APP \
|
# Bind the certificate to the container app
|
||||||
--environment $ENVIRONMENT \
|
az containerapp hostname bind --hostname $DOMAIN_NAME -g $RESOURCE_GROUP -n $CONTAINER_APP --environment $ENVIRONMENT --certificate $CERTIFICATE_LOWERCASE_NAME --validation-method CNAME
|
||||||
--certificate $CERTIFICATE_LOWERCASE_NAME \
|
|
||||||
--validation-method CNAME
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user