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-dotnetcore-sqldb-app.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps
146
146
1. *Runtime stack*: **.NET 8 (LTS)**.
147
147
1. *Engine*: **SQLAzure**. Azure SQL Database is a fully managed platform as a service (PaaS) database engine that's always running on the latest stable version of the SQL Server.
148
148
1. *Add Azure Cache for Redis?*: **Yes**.
149
-
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier later.
149
+
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier.
150
150
1. Select **Review + create**.
151
151
1. After validation completes, select **Create**.
152
152
:::column-end:::
@@ -176,7 +176,7 @@ Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps
176
176
177
177
## 3. Secure connection secrets
178
178
179
-
The creation wizard generated the connectivity string for you already as [.NET connection strings](configure-common.md#configure-connection-strings) and [app settings](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to key vault and change your app setting to [Key Vault references](app-service-key-vault-references.md) with the help of Service Connectors.
179
+
The creation wizard generated the connectivity string for you already as [.NET connection strings](configure-common.md#configure-connection-strings) and [app settings](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to a key vault and change your app setting to [Key Vault references](app-service-key-vault-references.md) with the help of Service Connectors.
180
180
181
181
> [!TIP]
182
182
> To use passwordless authentication, see [How do I change the SQL Database connection to use a managed identity instead?](#how-do-i-change-the-sql-database-connection-to-use-a-managed-identity-instead)
@@ -224,7 +224,7 @@ The creation wizard generated the connectivity string for you already as [.NET c
224
224
1. Select **Review + create**, then select **Create**. Wait for the key vault deployment to finish. You should see "Your deployment is complete."
225
225
:::column-end:::
226
226
:::column:::
227
-
:::image type="content" source="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-3.png" alt-text="A screenshot showing how secure a key vault with a private endpoint." lightbox="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-3.png":::
227
+
:::image type="content" source="./media/tutorial-dotnetcore-sqldb-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-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-3.png":::
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-java-spring-cosmosdb.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps
145
145
1. *Runtime stack*: **Java 21**.
146
146
1. *Java web server stack*: **Java SE (Embedded Web Server)**.
147
147
1. *Engine*: **Cosmos DB API for MongoDB**. Cosmos DB is a fully managed NoSQL, relational, and vector database as a service on Azure.
148
-
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier later.
148
+
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier.
149
149
1. Select **Review + create**.
150
150
1. After validation completes, select **Create**.
151
151
:::column-end:::
@@ -173,7 +173,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
173
173
174
174
## 3. Secure connection secrets
175
175
176
-
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
176
+
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to a key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
177
177
178
178
:::row:::
179
179
:::column span="2":::
@@ -216,7 +216,7 @@ The creation wizard generated the connectivity string for you already as an [app
216
216
1. Select **Review + create**, then select **Create**. Wait for the key vault deployment to finish. You should see "Your deployment is complete."
217
217
:::column-end:::
218
218
:::column:::
219
-
:::image type="content" source="./media/tutorial-java-spring-cosmosdb/azure-portal-secure-connection-secrets-3.png" alt-text="A screenshot showing how secure a key vault with a private endpoint." lightbox="./media/tutorial-java-spring-cosmosdb/azure-portal-secure-connection-secrets-3.png":::
219
+
:::image type="content" source="./media/tutorial-java-spring-cosmosdb/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-spring-cosmosdb/azure-portal-secure-connection-secrets-3.png":::
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-java-tomcat-mysql-app.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps
143
143
1. *Runtime stack*: **Java 17**.
144
144
1. *Java web server stack*: **Apache Tomcat 10.1**.
145
145
1. **MySQL - Flexible Server** is selected for you by default as the database engine. If not, select it. Azure Database for MySQL is a fully managed MySQL database as a service on Azure, compatible with the latest community editions.
146
-
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier later.
146
+
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier.
147
147
1. Select **Review + create**.
148
148
1. After validation completes, select **Create**.
149
149
:::column-end:::
@@ -171,7 +171,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
171
171
172
172
## 3. Secure connection secrets
173
173
174
-
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
174
+
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to a key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
[Azure App Service](overview.md) provides a highly scalable, self-patching web hosting service using the Linux operating system. This tutorial shows how to create a secure Node.js app in Azure App Service that's connected to a [Azure Cosmos DB for MongoDB](/azure/cosmos-db/mongodb/mongodb-introduction) database. When you're finished, you'll have an Express.js app running on Azure App Service on Linux.
19
19
20
-
:::image type="content" source="./media/tutorial-nodejs-mongodb-app/azure-portal-browse-app-2.png" alt-text="Screenshot of Node.js application storing data in ComsosDB.":::
20
+
:::image type="content" source="./media/tutorial-nodejs-mongodb-app/azure-portal-browse-app-2.png" alt-text="Screenshot of Node.js application storing data in Cosmos DB.":::
21
21
22
22
In this tutorial, you learn how to:
23
23
@@ -144,7 +144,7 @@ Sign in to the [Azure portal](https://portal.azure.com/) and follow these steps
144
144
1. *Name*: **msdocs-expressjs-mongodb-XYZ**, where *XYZ* is any three random characters.
145
145
1. *Runtime stack*: **Node 20 LTS**.
146
146
1. *Engine*: **Cosmos DB API for MongoDB**. Azure Cosmos DB is a cloud native database offering a 100% MongoDB compatible API. Note the database name that's generated for you (*\<app-name>-database*). You'll need it later.
147
-
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier later.
147
+
1. *Hosting plan*: **Basic**. When you're ready, you can [scale up](manage-scale-up.md) to a production pricing tier.
148
148
1. Select **Review + create**.
149
149
1. After validation completes, select **Create**.
150
150
:::column-end:::
@@ -174,7 +174,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
174
174
175
175
## 3. Secure connection secrets
176
176
177
-
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
177
+
The creation wizard generated the connectivity string for you already as an [app setting](configure-common.md#configure-app-settings). However, the security best practice is to keep secrets out of App Service completely. You'll move your secrets to a key vault and change your app setting to a [Key Vault reference](app-service-key-vault-references.md) with the help of Service Connectors.
178
178
179
179
:::row:::
180
180
:::column span="2":::
@@ -217,7 +217,7 @@ The creation wizard generated the connectivity string for you already as an [app
217
217
1. Select **Review + create**, then select **Create**. Wait for the key vault deployment to finish. You should see "Your deployment is complete."
218
218
:::column-end:::
219
219
:::column:::
220
-
:::image type="content" source="./media/tutorial-nodejs-mongodb-app/azure-portal-secure-connection-secrets-3.png" alt-text="A screenshot showing how secure a key vault with a private endpoint." lightbox="./media/tutorial-nodejs-mongodb-app/azure-portal-secure-connection-secrets-3.png":::
220
+
:::image type="content" source="./media/tutorial-nodejs-mongodb-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-nodejs-mongodb-app/azure-portal-secure-connection-secrets-3.png":::
221
221
:::column-end:::
222
222
:::row-end:::
223
223
:::row:::
@@ -563,6 +563,8 @@ The AZD template you use generated the connectivity variables for you already as
563
563
564
564
`AZURE_COSMOS_CONNECTIONSTRING` contains the connection string to the Cosmos DB database in Azure. You need to use it in your code later.
565
565
566
+
1. For your convenience, the AZD template shows you the direct link to the app's app settings page. Find the link and open it in a new browser tab.
567
+
566
568
Having issues? Check the [Troubleshooting section](#troubleshooting).
567
569
568
570
## 4. Modify sample code and redeploy
@@ -587,7 +589,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
587
589
588
590
# [Without GitHub Copilot](#tab/nocopilot)
589
591
590
-
1. From the explorer, open *app.js* see that the app creates a Mongoose connection using `MONGODB_URI` (Line 16).
592
+
1. From the explorer, open *app.js* and see that the app creates a Mongoose connection using `MONGODB_URI` (Line 16).
591
593
592
594
1. Change `process.env.MONGODB_URI` to `process.env.AZURE_COSMOS_CONNECTIONSTRING || process.env.MONGODB_URI`.
0 commit comments