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/postgresql/flexible-server/tutorial-django-app-service-postgres.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: sunilagarwal
8
8
ms.reviewer: ""
9
9
ms.devlang: azurecli
10
10
ms.topic: tutorial
11
-
ms.date: 11/30/2021
11
+
ms.date: 1/22/2024
12
12
ms.custom: mvc, devx-track-azurecli
13
13
---
14
14
@@ -105,13 +105,15 @@ Create an App Service app (the host process) with the [az webapp up](/cli/azure/
105
105
```azurecli
106
106
# Create a web app
107
107
108
-
az webapp up --resource-group myresourcegroup --location westus2 --plan DjangoPostgres-tutorial-plan --sku B1 --name <app-name>
108
+
az webapp up --resource-group myresourcegroup --location westus2 --plan DjangoPostgres-tutorial-plan --sku S1 --name <app-name>
109
109
110
-
# Enable VNET integration for web app.
110
+
# Create subnet for web app
111
111
112
-
# Replace <vnet-name> and <subnet-name> with the virtual network and subnet name that the Azure Database for PostgreSQL flexible server instance is using.
# Replace <vnet-name> with the virtual network created when creating Azure Database for PostgreSQL flexible server. Replace <webapp-subnet-name> to replace with the subnet created for web app.
# Configure database information as environment variables
117
119
@@ -121,7 +123,7 @@ az webapp config appsettings set --settings DJANGO_ENV="production" DBHOST="<pos
121
123
```
122
124
- For the `--location` argument, use the same location as you did for the database in the previous section.
123
125
- Replace *\<app-name>* with a unique name across all Azure (the server endpoint is `https://<app-name>.azurewebsites.net`). Allowed characters for *\<app-name>* are `A`-`Z`, `0`-`9`, and `-`. A good pattern is to use a combination of your company name and an app identifier.
124
-
- Create the [App Service plan](../../app-service/overview-hosting-plans.md)*DjangoPostgres-tutorial-plan* in the Basic pricing tier (B1), if it doesn't exist. `--plan` and `--sku` are optional.
126
+
- Create the [App Service plan](../../app-service/overview-hosting-plans.md)*DjangoPostgres-tutorial-plan* in the Standard pricing tier (S1), if it doesn't exist. `--plan` and `--sku` are optional.
125
127
- Create the App Service app if it doesn't exist.
126
128
- Enable default logging for the app, if not already enabled.
127
129
- Upload the repository using ZIP deployment with build automation enabled.
0 commit comments