Skip to content

Commit d40c1cc

Browse files
committed
Fix env var typo in Python web app deployment tutorial with Container Apps
- Changed `RESOURCE_GROUP` -> `RESOURCE_GROUP_NAME`: Without this change, the resource group will be empty, triggering a misleading [InvalidApiVersionParameter][1] error. - Dedented code block backticks to fix markdown rendering [1]: Azure/azure-cli#28038
1 parent 5f5bc8a commit d40c1cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/python/tutorial-deploy-python-web-app-azure-container-apps-02.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -760,11 +760,11 @@ These steps require the Azure Container Apps extension, *containerapp*.
760760
```azurecli
761761
UA_CLIENT_ID=$(az identity show \
762762
--name "$UA_MANAGED_IDENTITY_NAME" \
763-
--resource-group "$RESOURCE_GROUP" \
763+
--resource-group "$RESOURCE_GROUP_NAME" \
764764
--query clientId -o tsv)
765765
UA_RESOURCE_ID=$(az identity show \
766766
--name "$UA_MANAGED_IDENTITY_NAME" \
767-
--resource-group "$RESOURCE_GROUP" \
767+
--resource-group "$RESOURCE_GROUP_NAME" \
768768
--query id -o tsv)
769769
```
770770
@@ -786,8 +786,8 @@ These steps require the Azure Container Apps extension, *containerapp*.
786786
```azurecli
787787
az containerapp create \
788788
--name "$CONTAINER_APP_NAME" \
789-
--resource-group "$RESOURCE_GROUP" \
790-
--environment "$APP_ENV" \
789+
--resource-group "$RESOURCE_GROUP_NAME" \
790+
--environment "$APP_ENV_NAME" \
791791
--image "$REGISTRY_NAME.azurecr.io/$IMAGE_NAME" \
792792
--target-port "$TARGET_PORT" \
793793
--ingress external \
@@ -802,7 +802,7 @@ These steps require the Azure Container Apps extension, *containerapp*.
802802
RUNNING_IN_PRODUCTION=1 \
803803
AZURE_CLIENT_ID="$UA_CLIENT_ID" \
804804
AZURE_SECRET_KEY="$AZURE_SECRET_KEY"
805-
```
805+
```
806806
807807
1. For Django only, migrate and create a database schema. (In the Flask sample app, it's done automatically, and you can skip this step.)
808808

0 commit comments

Comments
 (0)