Skip to content

Commit 0df6c65

Browse files
committed
updating file
1 parent 034ccba commit 0df6c65

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

articles/app-service/tutorial-python-postgresql-app.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,14 @@ az postgres up --resource-group DjangoPostgres-tutorial-rg --location centralus
169169
```
170170

171171
- **Replace** *\<postgres-server-name>* with a name that's **unique across all Azure** (the server endpoint becomes `https://<postgres-server-name>.postgres.database.azure.com`). A good pattern is to use a combination of your company name and another unique value.
172-
- For *\<admin-username>* and *\<admin-password>*, specify credentials to create an admin user for this Postgres server. The admin username can't be *azure_superuser*, *azure_pg_admin*, *admin*, *administrator*, *root*, *guest*, or *public*. It can't start with *pg_*. The password must contain **8 to 128 characters** from three of the following categories: English uppercase letters, English lowercase letters, numbers (0 through 9), and non-alphanumeric characters (for example, !, #, %). The password can't contain username.
172+
- For *\<admin-username>* and *\<admin-password>*, specify credentials to create an admin user for this Postgres server.
173+
- The admin username can't be *azure_superuser*, *azure_pg_admin*, *admin*, *administrator*, *root*, *guest*, or *public*. It can't start with *pg_*.
174+
- The password must contain 8 to 128 characters from either:
175+
- English uppercase letters.
176+
- English lowercase letters.
177+
- Numbers (0 through 9)
178+
- Non-alphanumeric characters (for example, !, #, %).
179+
- The password can't contain username.
173180
- Don't use the `$` character in the username or password. Later you create environment variables with these values where the `$` character has special meaning within the Linux container used to run Python apps.
174181
- The B_Gen5_1 (Basic, Gen5, 1 core) [pricing tier](../postgresql/concepts-pricing-tiers.md) used here is the least expensive. For production databases, omit the `--sku-name` argument to use the GP_Gen5_2 (General Purpose, Gen 5, 2 cores) tier instead.
175182

@@ -261,7 +268,7 @@ This command does the following actions, which may take a few minutes:
261268
- Create the App Service app if it doesn't exist.
262269
- Allow default logging for the app, if not already enabled.
263270
- Upload the repository using ZIP deployment with build automation enabled.
264-
- Cache common parameters, such as the name of the resource group and App Service plan, into the file *.azure/config*. As a result, you don't need to specify again all the same parameters with later commands. For example, to redeploy the app after making changes, you can just run `az webapp up` again without any parameters. Commands that come from CLI extensions, such as `az postgres up` don't at present use the cache, which is why you must specify the resource group and location here with the initial use of `az webapp up`.
271+
- Cache common parameters, such as the name of the resource group and App Service plan, into the file *.azure/config*. As a result, you don't need to specify again all the same parameters with later commands. For example, to redeploy the app after making changes, you can just run `az webapp up` again without any parameters. Commands that come from CLI extensions, such as `az postgres up` don't use the cache now, which is why you must specify the resource group and location here with the initial use of `az webapp up`.
265272

266273
::: zone-end
267274

@@ -345,7 +352,7 @@ Django database migrations ensure that the schema in the PostgreSQL on Azure dat
345352
az webapp ssh
346353
```
347354
348-
If you can't connect to the SSH session, then the app itself has failed to start. [Check the diagnostic logs](#6-stream-diagnostic-logs) for details. For example, if you haven't created the necessary app settings in the previous section, the logs will indicate `KeyError: 'DBNAME'`.
355+
If you can't connect to the SSH session, then the app itself has failed to start. [Check the diagnostic logs](#6-stream-diagnostic-logs) for details. For example, if you haven't created the necessary app settings in the previous section, the logs indicate `KeyError: 'DBNAME'`.
349356
350357
1. In the SSH session, run the following commands (you can paste commands using **Ctrl**+**Shift**+**V**):
351358
@@ -373,7 +380,7 @@ Having issues? Refer first to the [Troubleshooting guide](configure-language-pyt
373380
az webapp browse
374381
```
375382
376-
If you see "Application Error", then it's likely that you either didn't create the required settings in the previous step, [Configure environment variables to connect the database](#42-configure-environment-variables-to-connect-the-database), or that those value contain errors. Run the command `az webapp config appsettings list` to check the settings. You can also [check the diagnostic logs](#6-stream-diagnostic-logs) to see specific errors during app startup. For example, if you didn't create the settings, the logs will show the error, `KeyError: 'DBNAME'`.
383+
If you see "Application Error", then it's likely that you either didn't create the required settings in the previous step, [Configure environment variables to connect the database](#42-configure-environment-variables-to-connect-the-database), or that those value contain errors. Run the command `az webapp config appsettings list` to check the settings. You can also [check the diagnostic logs](#6-stream-diagnostic-logs) to see specific errors during app startup. For example, if you didn't create the settings, the logs show the error, `KeyError: 'DBNAME'`.
377384
378385
After updating the settings to correct any errors, give the app a minute to restart, then refresh the browser.
379386

0 commit comments

Comments
 (0)