You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/python/tutorial-containerize-deploy-python-web-app-azure-03.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
74
74
The command adds "azurecr.io" to the name to create the fully qualified registry name. If successful, you see the message "Login Succeeded".
75
75
76
76
> [!NOTE]
77
-
> In the Azure Cloud Shell, the az `acr login command` is not necessary, as authentication is handled automatically through your Cloud Shell session. However, if you encounter authentication issues, you can still use it.
77
+
> In the Azure Cloud Shell, the az `acr login command` isn't necessary, as authentication is handled automatically through your Cloud Shell session. However, if you encounter authentication issues, you can still use it.
78
78
79
79
## Build an image in Azure Container Registry
80
80
@@ -86,10 +86,14 @@ You can generate the container image directly in Azure through various approache
86
86
Azure CLI commands can be run in your local development environment with the [Azure CLI installed](/cli/azure/install-azure-cli) or in [Azure Cloud Shell](https://shell.azure.com/).
87
87
88
88
1. In the console, navigate to the root folder for your cloned repository from part 2 of this tutorial series.
89
+
89
90
1. Build the container image using the [az acr build](/cli/azure/acr#az-acr-build) command.
90
91
91
92
```azurecli-interactive
92
93
az acr build -r $REGISTRY_NAME -g $RESOURCE_GROUP_NAME -t msdocspythoncontainerwebapp:latest .
94
+
# When using Azure Cloud Shell, run one of the following commands instead:
The last argument in the command is the fully qualified path to the repo. When running in Azure Cloud Shell, use https://github.com/Azure-Samples/msdocs-python-django-container-web-app.git for the Django sample app and https://github.com/Azure-Samples/msdocs-python-flask-container-web-app.git for the Flask sample app.
Copy file name to clipboardExpand all lines: articles/python/tutorial-containerize-deploy-python-web-app-azure-04.md
+9-8
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
36
36
37
37
RESOURCE_GROUP_NAME should still be set in your environment to the resource group name you used in parts 2 and 3 of this tutorial series. Build container in Azure of this tutorial. If it isn't, uncomment the first line and set it to the name you used.
38
38
39
-
### [Bashl](#tab/bash)
39
+
### [Bash](#tab/bash)
40
40
41
41
```azurecli-interactive
42
42
#!/bin/bash
@@ -68,7 +68,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
68
68
69
69
1. Create an App Service plan with the [az appservice plan create](/cli/azure/appservice/plan#az-appservice-plan-create) command.
70
70
71
-
### [Bashl](#tab/bash)
71
+
### [Bash](#tab/bash)
72
72
73
73
```azurecli-interactive
74
74
#!/bin/bash
@@ -106,7 +106,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
106
106
* CONTAINER_NAME is of the form "yourregistryname.azurecr.io/repo_name:tag".
107
107
* REGISTRY_NAME should still be set in your environment to the registry name you used in part **3. Build container in Azure** of this tutorial. If necessary, uncomment the line where it's set in the code snippet and set it to the name you used.
108
108
109
-
### [Bashl](#tab/bash)
109
+
### [Bash](#tab/bash)
110
110
111
111
```azurecli-interactive
112
112
#!/bin/bash
@@ -160,7 +160,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
160
160
161
161
1. Configure the web app to use managed identities to pull from the Azure Container Registry with the [az webapp config set](/cli/azure/webapp/config#az-webapp-config-set) command.
162
162
163
-
### [Bashl](#tab/bash)
163
+
### [Bash](#tab/bash)
164
164
165
165
```azurecli-interactive
166
166
#!/bin/bash
@@ -186,7 +186,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
186
186
187
187
1. Get the application scope credential with the [az webapp deployment list-publishing-credentials](/cli/azure/webapp/deployment#az-webapp-deployment-list-publishing-credentials) command.
188
188
189
-
### [Bashl](#tab/bash)
189
+
### [Bash](#tab/bash)
190
190
191
191
```azurecli-interactive
192
192
#!/bin/bash
@@ -214,7 +214,7 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
214
214
215
215
1. Use the application scope credential to create a webhook with the [az acr webhook create](/cli/azure/acr/webhook#az-acr-webhook-create) command.
216
216
217
-
### [Bashl](#tab/bash)
217
+
### [Bash](#tab/bash)
218
218
219
219
```azurecli-interactive
220
220
#!/bin/bash
@@ -255,7 +255,7 @@ To set environment variables in App Service, you create *app settings* with the
255
255
* DB_NAME: Use "restaurants_reviews".
256
256
* COLLECTION_NAME: Use "restaurants_reviews".
257
257
258
-
### [Bashl](#tab/bash)
258
+
### [Bash](#tab/bash)
259
259
260
260
```azurecli-interactive
261
261
#!/bin/bash
@@ -269,7 +269,7 @@ To set environment variables in App Service, you create *app settings* with the
0 commit comments