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/app-service/tutorial-python-postgresql-app.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ The creation wizard generated the database connectivity string for you already a
258
258
This app setting lets you connect to the Postgres database secured behind a private endpoint. However, the secret is saved directly in the App Service app, which isn't the best. You'll change this.
259
259
:::column-end:::
260
260
:::column:::
261
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-1.png" alt-text="A screenshot showing how to see the value of an app setting." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-1.png":::
261
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-1.png" alt-text="A screenshot showing how to see the value of an app setting." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-1.png":::
262
262
:::column-end:::
263
263
:::row-end:::
264
264
:::row:::
@@ -270,7 +270,7 @@ The creation wizard generated the database connectivity string for you already a
270
270
1. In **Region**, set it to the same location as the resource group.
271
271
:::column-end:::
272
272
:::column:::
273
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-2.png" alt-text="A screenshot showing how to create a key vault." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-2.png":::
273
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-2.png" alt-text="A screenshot showing how to create a key vault." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-2.png":::
274
274
:::column-end:::
275
275
:::row-end:::
276
276
:::row:::
@@ -291,7 +291,7 @@ The creation wizard generated the database connectivity string for you already a
291
291
1. Select **Review + create**, then select **Create**. Wait for the key vault deployment to finish. You should see "Your deployment is complete."
292
292
:::column-end:::
293
293
:::column:::
294
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-3.png" alt-text="A screenshot showing how to secure a key vault with a private endpoint." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-3.png":::
294
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-3.png" alt-text="A screenshot showing how to secure a key vault with a private endpoint." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-3.png":::
295
295
:::column-end:::
296
296
:::row-end:::
297
297
:::row:::
@@ -300,15 +300,15 @@ The creation wizard generated the database connectivity string for you already a
300
300
1. In the top search bar, type *msdocs-python-postgres*, then select the App Service resource called **msdocs-python-postgres-XYZ**.
301
301
1. In the App Service page, in the left menu, select **Settings > Service Connector**. There's already a connector, which the app creation wizard created for you.
302
302
1. Select checkbox next to the connector, then select **Edit**.
303
-
1. In the **Basics** tab, for Flask, set **Client type**to **Python**. For Django, set the **Client type** to **Django**.
303
+
1. In the **Basics** tab, under **PostgreSQL database**select the PostgreSQL database that was created.
304
304
1. Select the **Authentication** tab.
305
305
1. In **Password**, paste the password you copied earlier.
306
306
1. Select **Store Secret in Key Vault**.
307
307
1. Under **Key Vault Connection**, select **Create new**.
308
308
A **Create connection** dialog is opened on top of the edit dialog.
309
309
:::column-end:::
310
310
:::column:::
311
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-4.png" alt-text="A screenshot showing how to edit a service connector with a key vault connection." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-4.png":::
311
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-4.png" alt-text="A screenshot showing how to edit a service connector with a key vault connection." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-4.png":::
312
312
:::column-end:::
313
313
:::row-end:::
314
314
:::row:::
@@ -319,7 +319,7 @@ The creation wizard generated the database connectivity string for you already a
319
319
1. When validation completes, select **Create**.
320
320
:::column-end:::
321
321
:::column:::
322
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-5.png" alt-text="A screenshot showing how to configure a key vault service connector." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-5.png":::
322
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-5.png" alt-text="A screenshot showing how to configure a key vault service connector." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-5.png":::
323
323
:::column-end:::
324
324
:::row-end:::
325
325
:::row:::
@@ -330,7 +330,7 @@ The creation wizard generated the database connectivity string for you already a
330
330
1. Select **Save**. Wait until the **Update succeeded** notification appears.
331
331
:::column-end:::
332
332
:::column:::
333
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-6.png" alt-text="A screenshot showing the key vault connection selected in the defaultConnector." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-6.png":::
333
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-6.png" alt-text="A screenshot showing the key vault connection selected in the defaultConnector." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-6.png":::
334
334
:::column-end:::
335
335
:::row-end:::
336
336
:::row:::
@@ -340,7 +340,7 @@ The creation wizard generated the database connectivity string for you already a
340
340
1. Next to **AZURE_POSTGRESQL_CONNECTIONSTRING**, select **Show value**. The value should be `@Microsoft.KeyVault(...)`, which means that it's a [key vault reference](app-service-key-vault-references.md) because the secret is now managed in the key vault.
341
341
:::column-end:::
342
342
:::column:::
343
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-7.png" alt-text="A screenshot showing how to see the value of the MySQL environment variable in Azure." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-7.png":::
343
+
:::image type="content" source="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-7.png" alt-text="A screenshot showing how to see the value of the MySQL environment variable in Azure." lightbox="./media/tutorial-python-postgresql-app/azure-portal-secure-connection-secrets-7.png":::
0 commit comments