Skip to content

Commit 1b1e09b

Browse files
authored
Merge pull request #1463 from sudormrfbin/patch-1
Fix env var typo in Python web deployment tutorial with Container Apps
2 parents 48f2843 + ef7a0f5 commit 1b1e09b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ These steps require the Azure Container Apps extension, *containerapp*.
739739
#!/bin/bash
740740
APP_ENV_NAME=<app-env-name> # Use a unique name for the environment, such as "python-container-env".
741741
az containerapp env create \
742-
--name python-container-env \
742+
--name $APP_ENV_NAME \
743743
--resource-group $RESOURCE_GROUP_NAME \
744744
--location $LOCATION
745745
```
@@ -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)