Skip to content

Commit 5d1c431

Browse files
committed
touchups
1 parent 9ee9523 commit 5d1c431

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

articles/service-connector/tutorial-django-webapp-postgres-cli.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Create the app host in App Service and deploy the sample app code to that host.
105105
* Uploads the repository using ZIP deployment with build automation enabled.
106106
* Builds the app.
107107

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/).
109109

110110
1. From the *serviceconnector-webapp-postgresql-django-passwordless* repository folder, run the following [`az webapp up`](/cli/azure/webapp#az-webapp-up) command:
111111

@@ -118,7 +118,8 @@ In the code, the `sku` defines the CPU, memory, and cost of the App Service plan
118118
--sku B1
119119
```
120120

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.
122123

123124
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.
124125

@@ -150,7 +151,7 @@ Create the Azure Database for PostgreSQL database to store app information. The
150151
--microsoft-entra-auth Enabled
151152
```
152153

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.
154155
155156
```azurecli
156157
IP_ADDRESS=<your IP address>
@@ -244,13 +245,13 @@ Use [az webapp connection create storage-blob](/cli/azure/webapp/connection/crea
244245

245246
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.
246247
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:
248249
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+
```
252253
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.
254255

255256
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.
256257
@@ -260,7 +261,7 @@ Test the functionality of the sample app by adding a restaurant and some reviews
260261
261262
## Clean up resources
262263
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.
264265
265266
```azurecli
266267
az group delete --name $RESOURCE_GROUP_NAME --no-wait

0 commit comments

Comments
 (0)