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/app-service-web-tutorial-dotnet-sqldatabase.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Tutorial: ASP.NET app with Azure SQL Database'
3
-
description: Learn how to deploy a data-driven C# ASP.NET app in Azure App Service and connect it to Azure SQL Database.
3
+
description: Learn how to deploy a data-driven C# ASP.NET app to Azure App Service and connect it to Azure SQL Database.
4
4
ms.assetid: 03c584f1-a93c-4e3d-ac1b-c82b50c75d3e
5
5
ms.devlang: csharp
6
6
ms.topic: tutorial
@@ -22,8 +22,9 @@ In this tutorial, you:
22
22
23
23
> [!div class="checklist"]
24
24
>
25
-
> - Publish a web app that has a SQL database back end to Azure.
26
-
> - Create an Azure SQL database to hold the app data, and connect the ASP.NET app to the Azure SQL database.
25
+
> - Publish a data-driven web app to Azure.
26
+
> - Create an Azure SQL database to hold the app data.
27
+
> - Connect the ASP.NET app to the Azure SQL database.
27
28
> - Update the data model and redeploy the app.
28
29
> - Stream application logs from Azure to Visual Studio.
29
30
@@ -150,7 +151,7 @@ The connection string is set in the *Web.config* file and referenced in the *Mod
150
151
1. Under **Connection string name**, enter the name of the connection string referenced in *Models/MyDatabaseContext.cs*, in this case *MyDbConnection*.
151
152
152
153
> [!NOTE]
153
-
> If you see **Local user secrets files** instead, you might have configured SQL Database from the **Connected Services** page instead of the **Publish** page.
154
+
> If you see **Local user secrets files** instead, make sure you used the **Publish** page, not the **Connected Services** page, to configure SQL Database.
154
155
155
156
1. Select **Additional settings**, make sure **Azure App Settings** is selected, and select **Finish**.
156
157
@@ -168,7 +169,7 @@ Congratulations! Your data-driven ASP.NET application is running live in Azure A
168
169
169
170
You can use **SQL Server Object Explorer** in Visual Studio to easily explore and manage your Azure SQL database. In **SQL Server Object Explorer**, you can perform most common database operations, such as running queries or creating views and stored procedures.
170
171
171
-
The new database opened its firewall to the App Service app you created, but to access the database from your local computer, such as from Visual Studio, you must open a firewall for your local machine's public IP address.
172
+
The new database opened its firewall to the App Service app you created. To access the database from your local computer, such as from Visual Studio, you must open a firewall for your local machine's public IP address.
172
173
173
174
>[!NOTE]
174
175
>If your internet service provider changes your public IP address, you need to reconfigure the firewall to access the Azure database again.
@@ -200,7 +201,7 @@ This firewall rule allows the public IP address of your local computer. The dial
200
201
201
202

202
203
203
-
## Update app with Code First Migrations
204
+
## Update the app with Code First Migrations
204
205
205
206
You can use familiar tools in Visual Studio to update your database and app in Azure. In this step, you use Code First Migrations in Entity Framework to make a change to your database schema and publish it to Azure.
206
207
@@ -339,7 +340,7 @@ Open _Controllers\TodosController.cs_, and note that each action starts with a `
339
340
340
341
### Change trace levels
341
342
342
-
1. To change the trace levels to output other trace messages, in the **Hosting** section of the **Publish** page, select the **...** at upper right and select **Open in Azure portal**.
343
+
1. To change the trace levels to output other trace messages, in the **Hosting** section of the **Publish** page, select the **...** at upper right and then select **Open in Azure portal**.
343
344
344
345
1. On the Azure portal page for your app, select **App Service logs** under **Monitoring** in the left menu.
345
346
@@ -367,10 +368,10 @@ To stop the log-streaming service, select the **Stop monitoring** icon in the **
367
368
368
369
## Related content
369
370
370
-
-[Configure ASP.NET app](configure-language-dotnet-framework.md)
371
-
-[Start analyzing costs with Cost Management](../cost-management-billing/costs/quick-acm-cost-analysis.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn)
371
+
-[Configure an ASP.NET app for Azure App Service](configure-language-dotnet-framework.md)
372
+
-[Quickstart: Start using Cost analysis](/azure/cost-management-billing/costs/quick-acm-cost-analysis?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn)
372
373
373
-
Advance to the next tutorial to learn how to use managed identity to improve your Azure SQL Database connection security.
374
+
Go to the next tutorial to learn how to use managed identity to improve your Azure SQL Database connection security.
374
375
375
376
> [!div class="nextstepaction"]
376
377
> [Tutorial: Connect to SQL Database from App Service without secrets using a managed identity](tutorial-connect-msi-sql-database.md)
0 commit comments