Skip to content

Commit 11d4bf9

Browse files
author
naman-msft
committed
updated docs
1 parent 8467d5a commit 11d4bf9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scenarios/azure-docs/articles/app-service/quickstart-python-1-django.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ Before deploying, declare environment variables for the deployment. A random suf
7676
```bash
7777
export RANDOM_SUFFIX=$(openssl rand -hex 3)
7878
export APP_NAME="mydjangoapp$RANDOM_SUFFIX"
79-
az webapp up --sku B1 --name $APP_NAME --runtime "PYTHON|3.10"
79+
export PYTHON_VERSION=$(python3 --version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
80+
az webapp up --sku B1 --name $APP_NAME --runtime "PYTHON|$PYTHON_VERSION"
8081
```
8182

8283
- If the `az` command isn't recognized, be sure you have the Azure CLI installed as described in [Set up your initial environment](#set-up-your-initial-environment).

scenarios/azure-docs/articles/app-service/quickstart-python-1-flask.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Deploy the code in your local folder (*python-docs-hello-world*) using the follo
7070
```bash
7171
export RANDOM_SUFFIX=$(openssl rand -hex 3)
7272
export APP_NAME="myPythonApp$RANDOM_SUFFIX"
73-
az webapp up --sku B1 --name $APP_NAME --runtime "PYTHON|3.10"
73+
export PYTHON_VERSION=$(python3 --version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
74+
az webapp up --sku B1 --name $APP_NAME --runtime "PYTHON|$PYTHON_VERSION"
7475
```
7576

7677
- If the `az` command isn't recognized, be sure you have the Azure CLI installed as described in [Set up your initial environment](#set-up-your-initial-environment).

0 commit comments

Comments
 (0)