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/service-connector/tutorial-django-webapp-postgres-cli.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Create the app host in App Service and deploy the sample app code to that host.
105
105
* Uploads the repository using ZIP deployment with build automation enabled.
106
106
* Builds the app.
107
107
108
-
In the code, the `sku` defines the CPU, memory, and cost of the App Service plan. The B1 (Basic) service plan incurs a small cost in your Azure subscription. You can omit the `--sku` parameter to use the default SKU, usually P1v3 (Premium v3). For a full list of App Service plans, see [App Service pricing](https://azure.microsoft.com/pricing/details/app-service/linux/).
108
+
In the code, the `sku` defines the CPU, memory, and cost of the App Service plan. The Basic (B1) service plan incurs a small cost in your Azure subscription. You can omit the `--sku` parameter to use the default SKU, usually P1v3 (Premium v3). For a full list of App Service plans, see [App Service pricing](https://azure.microsoft.com/pricing/details/app-service/linux/).
109
109
110
110
1. From the *serviceconnector-webapp-postgresql-django-passwordless* repository folder, run the following [`az webapp up`](/cli/azure/webapp#az-webapp-up) command:
111
111
@@ -118,7 +118,8 @@ In the code, the `sku` defines the CPU, memory, and cost of the App Service plan
118
118
--sku B1
119
119
```
120
120
121
-
The deployment takes a few minutes. Once the app build completes, you can exit out of the command by selecting Ctrl+C.
121
+
>[!NOTE]
122
+
>The deployment takes a few minutes, and the command can hang, especially on a Basic SKU. Once the app builds successfully and the output shows `Starting the app`, you can exit out of the command by selecting Ctrl+C.
122
123
123
124
1. Configure the app to use the repository *start.sh* file by running the [az webapp config set](/cli/azure/webapp/config#az-webapp-config-set) command.
124
125
@@ -150,7 +151,7 @@ Create the Azure Database for PostgreSQL database to store app information. The
150
151
--microsoft-entra-auth Enabled
151
152
```
152
153
153
-
1. If you weren't prompted to enable access to your current client IP address, configure a firewall rule on your server with the [az postgres flexible-server firewall-rule create](/cli/azure/postgres/flexible-server/firewall-rule) command. This rule allows your local environment access to the server.
154
+
1. If you aren't prompted to enable access to your current client IP address, configure a firewall rule on your server with the [az postgres flexible-server firewall-rule create](/cli/azure/postgres/flexible-server/firewall-rule) command. This rule allows your local environment access to the server.
154
155
155
156
```azurecli
156
157
IP_ADDRESS=<your IP address>
@@ -244,13 +245,13 @@ Use [az webapp connection create storage-blob](/cli/azure/webapp/connection/crea
244
245
245
246
Open and test the Azure Restaurant Review web app. The app uses the [azure.identity](https://pypi.org/project/azure-identity/) package and its `DefaultAzureCredential` class. When the app is running in Azure, the `DefaultAzureCredential` automatically detects when a managed identity exists for the App Service, and uses it to access the Azure Storage and Azure Database for PostgreSQL resources. The app doesn't need to provide storage keys, certificates, or credentials to access these resources.
246
247
247
-
For a local Azure CLI installation, you can use [`az webapp browse`](/cli/azure/webapp?view=azure-cli-latest#az-webapp-browse) to open the app in your default browser:
248
+
- For a local Azure CLI installation, you can use [`az webapp browse`](/cli/azure/webapp#az-webapp-browse) to open the app in your default browser:
248
249
249
-
```azurecli
250
-
az webapp browse --name $APP_SERVICE_NAME.azurewebsites.net --resource-group $RESOURCE_GROUP_NAME
251
-
```
250
+
```azurecli
251
+
az webapp browse --name $APP_SERVICE_NAME.azurewebsites.net --resource-group $RESOURCE_GROUP_NAME
252
+
```
252
253
253
-
Azure Cloud Shell doesn't support the `az webapp browse`command because it can't open a local browser. The easiest way to open the web app is to select the **Default domain** link at upper right on the web app's Azure portal page.
254
+
- Azure Cloud Shell can't open a local browser, so it doesn't support the `az webapp browse` command. From Cloud Shell, the easiest way to open the web app is to select the **Default domain** link at upper right on the app's Azure portal page.
254
255
255
256
It can take a minute or two for the app to start. If you see a default app page that isn't the sample app, wait a minute and refresh the browser.
256
257
@@ -260,7 +261,7 @@ Test the functionality of the sample app by adding a restaurant and some reviews
260
261
261
262
## Clean up resources
262
263
263
-
To avoid ongoing charges, you can delete the resource group that contains the resources you created for this tutorial. Be sure you no longer need the app or the resources before running the command.
264
+
To avoid ongoing charges, you can delete the resources you created for this tutorial by deleting the resource group that contains them. Be sure you no longer need the app or the resources before you run the command.
264
265
265
266
```azurecli
266
267
az group delete --name $RESOURCE_GROUP_NAME --no-wait
0 commit comments