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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
112
112
113
113
::: zone pivot="azure-portal"
114
114
115
-
## 1. Create App Service, database, and cache
115
+
## 2. Create App Service, database, and cache
116
116
117
117
In this step, you create the Azure resources. The steps used in this tutorial create a set of secure-by-default resources that include App Service, Azure SQL Database, and Azure Cache. For the creation process, you'll specify:
118
118
@@ -181,7 +181,7 @@ The creation wizard generated the connectivity string for you already as [.NET c
181
181
182
182
:::row:::
183
183
:::column span="2":::
184
-
**Step 1:** In the App Service page,
184
+
**Step 1:** In the App Service page:
185
185
1. In the left menu, select **Settings > Environment variables > Connection strings**.
186
186
1. Select **AZURE_SQL_CONNECTIONSTRING**.
187
187
1. In **Add/Edit connection string**, in the **Value** field, find the *Password=* part at the end of the string.
@@ -291,7 +291,7 @@ The creation wizard generated the connectivity string for you already as [.NET c
291
291
:::column-end:::
292
292
:::row-end:::
293
293
294
-
## 3. Deploy sample code
294
+
## 4. Deploy sample code
295
295
296
296
In this step, you configure GitHub deployment using GitHub Actions. It's just one of many ways to deploy to App Service, but also a great way to have continuous integration in your deployment process. By default, every `git push` to your GitHub repository kicks off the build and deploy action.
297
297
@@ -410,7 +410,7 @@ In this step, you configure GitHub deployment using GitHub Actions. It's just on
410
410
:::column-end:::
411
411
:::row-end:::
412
412
413
-
## 4. Generate database schema
413
+
## 5. Generate database schema
414
414
415
415
With the SQL Database protected by the virtual network, the easiest way to run [dotnet database migrations](/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli) is in an SSH session with the App Service container.
416
416
@@ -437,7 +437,7 @@ In the SSH session, only changes to files in `/home` can persist beyond app rest
437
437
438
438
Having issues? Check the [Troubleshooting section](#troubleshooting).
439
439
440
-
## 5. Browse to the app
440
+
## 6. Browse to the app
441
441
442
442
:::row:::
443
443
:::column span="2":::
@@ -462,7 +462,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
462
462
> [!TIP]
463
463
> The sample application implements the [cache-aside](/azure/architecture/patterns/cache-aside) pattern. When you visit a data view for the second time, or reload the same page after making data changes, **Processing time** in the webpage shows a much faster time because it's loading the data from the cache instead of the database.
464
464
465
-
## 6. Stream diagnostic logs
465
+
## 7. Stream diagnostic logs
466
466
467
467
Azure App Service captures all messages logged to the console to assist you in diagnosing issues with your application. The sample app outputs console log messages in each of its endpoints to demonstrate this capability.
468
468
@@ -485,7 +485,7 @@ Azure App Service captures all messages logged to the console to assist you in d
485
485
:::column-end:::
486
486
:::row-end:::
487
487
488
-
## 7. Clean up resources
488
+
## 8. Clean up resources
489
489
490
490
When you're finished, you can delete all of the resources from your Azure subscription by deleting the resource group.
491
491
@@ -554,7 +554,7 @@ The dev container already has the [Azure Developer CLI](/azure/developer/azure-d
554
554
azd up
555
555
```
556
556
557
-
The `azd up`command takes about 15 minutes to complete (the Redis cache take the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
557
+
The `azd up`command takes about 15 minutes to complete (the Redis cache takes the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
558
558
559
559
This AZD template contains files (*azure.yaml* and the *infra* directory) that generate a secure-by-default architecture with the following Azure resources:
560
560
@@ -636,7 +636,7 @@ Before you deploy these changes, you still need to generate a migration bundle.
636
636
637
637
Having issues? Check the [Troubleshooting section](#troubleshooting).
638
638
639
-
## 4. Generate database schema
639
+
## 5. Generate database schema
640
640
641
641
With the SQL Database protected by the virtual network, the easiest way to run database migrations is in an SSH session with the App Service container. However, the App Service Linux containers don't have the .NET SDK, so the easiest way to run database migrations is to upload a self-contained migrations bundle.
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
@@ -173,7 +173,7 @@ The creation wizard generated the connectivity string for you already as an [app
173
173
174
174
:::row:::
175
175
:::column span="2":::
176
-
**Step 1:** In the App Service page,
176
+
**Step 1:** In the App Service page:
177
177
1. In the left menu, select **Settings > Environment variables**.
178
178
1. Next to **AZURE_COSMOS_CONNECTIONSTRING**, select **Show value**.
179
179
This connection string lets you connect to the Cosmos DB 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.
@@ -322,7 +322,7 @@ Like the Tomcat convention, if you want to deploy to the root context of Tomcat,
322
322
:::column span="2":::
323
323
**Step 5 (Option 1: with GitHub Copilot):**
324
324
1. Start a new chat session by selecting the **Chat** view, then selecting **+**.
325
-
1. Ask, "*@workspacewhy do i get the error in GitHub actions: The string 'java21' is not valid SemVer notation for a Java version.*" Copilot might give you an explanation and even give you the link to the workflow file that you need to fix.
325
+
1. Ask, "*@workspaceWhy do I get the error in GitHub actions: The string 'java21' is not valid SemVer notation for a Java version.*" Copilot might give you an explanation and even give you the link to the workflow file that you need to fix.
326
326
1. Open *.github/workflows/starter-no-infra_msdocs-spring-cosmosdb-123.yaml* in the explorer and make the suggested fix.
327
327
GitHub Copilot doesn't give you the same response every time, you might need to ask more questions to fine-tune its response. For tips, see [What can I do with GitHub Copilot in my codespace?](#what-can-i-do-with-github-copilot-in-my-codespace).
328
328
:::column-end:::
@@ -498,7 +498,7 @@ The dev container already has the [Azure Developer CLI](/azure/developer/azure-d
498
498
azd up
499
499
```
500
500
501
-
The `azd up`command takes about 15 minutes to complete (the Redis cache take the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
501
+
The `azd up`command takes about 15 minutes to complete (the Redis cache takes the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
502
502
503
503
This AZD template contains files (*azure.yaml* and the *infra* directory) that generate a secure-by-default architecture with the following Azure resources:
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-java-tomcat-mysql-app.md
+4-17Lines changed: 4 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ The creation wizard generated the connectivity string for you already as an [app
162
162
163
163
:::row:::
164
164
:::column span="2":::
165
-
**Step 1:** In the App Service page,
165
+
**Step 1:** In the App Service page:
166
166
1. In the left menu, select **Settings > Environment variables**.
167
167
1. Select **AZURE_MYSQL_CONNECTIONSTRING**. It contains a JDBC connection string. If you add an app setting that contains a valid Oracle, SQL Server, PostgreSQL, or MySQL connection string, App Service injects it as a Java Naming and Directory Interface (JNDI) data source in the Tomcat server's *context.xml* file.
168
168
1. In **Add/Edit application setting**, in the **Value** field, find the *password=* part at the end of the string.
@@ -203,7 +203,7 @@ The creation wizard generated the connectivity string for you already as an [app
203
203
1. Select **Review + create**, then select **Create**. Wait for the key vault deployment to finish. You should see "Your deployment is complete."
204
204
:::column-end:::
205
205
:::column:::
206
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-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-java-tomcat-mysql-app/azure-portal-secure-connection-secrets-3.png":::
206
+
:::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":::
207
207
:::column-end:::
208
208
:::row-end:::
209
209
:::row:::
@@ -258,26 +258,13 @@ The creation wizard generated the connectivity string for you already as an [app
258
258
259
259
Having issues? Check the [Troubleshooting section](#troubleshooting).
260
260
261
-
:::row:::
262
-
:::column span="2":::
263
-
**Step 2:**
264
-
1. In the **Application settings** tab of the **Configuration** page, find the app setting `AZURE_MYSQL_CONNECTIONSTRING`. The creation wizard created it for you.
265
-
1. If you want, you can select the **Edit** button to the right of each setting and see or copy its value, or select **Add** to add a variable to inject into your Tomcat container.
266
-
:::column-end:::
267
-
:::column:::
268
-
:::image type="content" source="./media/tutorial-java-tomcat-mysql-app/azure-portal-get-connection-string-2.png" alt-text="A screenshot showing how to see the autogenerated connection string." lightbox="./media/tutorial-java-tomcat-mysql-app/azure-portal-get-connection-string-2.png":::
269
-
:::column-end:::
270
-
:::row-end:::
271
-
272
-
Having issues? Check the [Troubleshooting section](#troubleshooting).
273
-
274
261
## 4. Confirm JNDI data source
275
262
276
263
If you add an app setting that contains a valid JDBC connection string for Oracle, SQL Server, PostgreSQL, or MySQL, App Service adds a Java Naming and Directory Interface (JNDI) data source for it in the Tomcat server's *context.xml* file. In this step, you use the SSH connection to the app container to verify the JNDI data source. In the process, you learn how to access the SSH shell for the Tomcat container.
277
264
278
265
:::row:::
279
266
:::column span="2":::
280
-
**Step 1:** Back in the App Service page,
267
+
**Step 1:** Back in the App Service page:
281
268
1. In the left menu, select **SSH**.
282
269
1. Select **Go**.
283
270
:::column-end:::
@@ -521,7 +508,7 @@ The dev container already has the [Azure Developer CLI](/azure/developer/azure-d
521
508
azd up
522
509
```
523
510
524
-
The `azd up`command takes about 15 minutes to complete (the Redis cache take the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
511
+
The `azd up`command takes about 15 minutes to complete (the Redis cache takes the most time). It also compiles and deploys your application code, but you'll modify your code later to work with App Service. While it's running, the command provides messages about the provisioning and deployment process, including a link to the deployment in Azure. When it finishes, the command also displays a link to the deploy application.
525
512
526
513
This AZD template contains files (*azure.yaml* and the *infra* directory) that generate a secure-by-default architecture with the following Azure resources:
0 commit comments