Skip to content

Commit be3edaf

Browse files
authored
Merge pull request #186513 from cephalin/issue#80635
update to latest .NET
2 parents 40460f2 + aa18083 commit be3edaf

File tree

8 files changed

+264
-393
lines changed

8 files changed

+264
-393
lines changed

articles/app-service/app-service-web-tutorial-dotnet-sqldatabase.md

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to deploy a C# ASP.NET app to Azure and to Azure SQL Data
44
ms.assetid: 03c584f1-a93c-4e3d-ac1b-c82b50c75d3e
55
ms.devlang: csharp
66
ms.topic: tutorial
7-
ms.date: 11/08/2021
7+
ms.date: 01/27/2022
88
ms.custom: "devx-track-csharp, mvc, devcenter, vs-azure, seodec18"
99
---
1010

@@ -23,15 +23,14 @@ In this tutorial, you learn how to:
2323
> * Deploy the app to Azure
2424
> * Update the data model and redeploy the app
2525
> * Stream logs from Azure to your terminal
26-
> * Manage the app in the Azure portal
2726
2827
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2928

3029
## Prerequisites
3130

3231
To complete this tutorial:
3332

34-
Install <a href="https://www.visualstudio.com/downloads/" target="_blank">Visual Studio 2022</a> with the **ASP.NET and web development** workload.
33+
Install <a href="https://www.visualstudio.com/downloads/" target="_blank">Visual Studio 2022</a> with the **ASP.NET and web development** and **Azure development** workloads.
3534

3635
If you've installed Visual Studio already, add the workloads in Visual Studio by clicking **Tools** > **Get Tools and Features**.
3736

@@ -172,7 +171,7 @@ Before creating a database, you need a [logical SQL server](../azure-sql/databas
172171

173172
#### Deploy your ASP.NET app
174173

175-
1. In the **Publish** tab scroll back up to the top and click **Publish**. Once your ASP.NET app is deployed to Azure. Your default browser is launched with the URL to the deployed app.
174+
1. In the **Publish** tab, scroll back up to the top and click **Publish**. Once your ASP.NET app is deployed to Azure. Your default browser is launched with the URL to the deployed app.
176175

177176
1. Add a few to-do items.
178177

@@ -182,7 +181,7 @@ Before creating a database, you need a [logical SQL server](../azure-sql/databas
182181

183182
## Access the database locally
184183

185-
Visual Studio lets you explore and manage your new database in Azure easily in the **SQL Server Object Explorer**. The new database already opened its firewall to the App Service app that you created, but to access it from your local computer (such as from Visual Studio), you must open a firewall for your local machine's public IP address. If your internet service provider changes your public IP address, you need to reconfigure the firewall to access the Azure database again.
184+
Visual Studio lets you explore and manage your new database in Azure easily in the **SQL Server Object Explorer**. The new database already opened its firewall to the App Service app that you created. But to access it from your local computer (such as from Visual Studio), you must open a firewall for your local machine's public IP address. If your internet service provider changes your public IP address, you need to reconfigure the firewall to access the Azure database again.
186185

187186
#### Create a database connection
188187

@@ -350,11 +349,9 @@ Each action starts with a `Trace.WriteLine()` method. This code is added to show
350349
351350
#### Enable log streaming
352351
353-
1. From the **View** menu, select **Cloud Explorer**.
352+
1. In the publish page, scroll down to the **Hosting** section.
354353
355-
1. In **Cloud Explorer**, expand the Azure subscription that has your app and expand **App Service**.
356-
357-
1. Right-click your Azure app and select **View Streaming Logs**.
354+
1. At the right-hand corner, click **...** > **View Streaming Logs**.
358355
359356
![Enable log streaming](./media/app-service-web-tutorial-dotnet-sqldatabase/stream-logs.png)
360357
@@ -366,16 +363,14 @@ Each action starts with a `Trace.WriteLine()` method. This code is added to show
366363
367364
#### Change trace levels
368365
369-
1. To change the trace levels to output other trace messages, go back to **Cloud Explorer**.
366+
1. To change the trace levels to output other trace messages, go back to the publish page.
370367
371-
1. Right-click your app again and select **Open in Portal**.
368+
1. In the **Hosting** section, click **...** > **Open in Azure portal**.
372369
373370
1. In the portal management page for your app, from the left menu, select **App Service logs**.
374371
375372
1. Under **Application Logging (File System)**, select **Verbose** in **Level**. Click **Save**.
376373
377-
![Change trace level to Verbose](./media/app-service-web-tutorial-dotnet-sqldatabase/trace-level-verbose.png)
378-
379374
> [!TIP]
380375
> You can experiment with different trace levels to see what types of messages are displayed for each level. For example, the **Information** level includes all logs created by `Trace.TraceInformation()`, `Trace.TraceWarning()`, and `Trace.TraceError()`, but not logs created by `Trace.WriteLine()`.
381376
@@ -394,22 +389,6 @@ To stop the log-streaming service, click the **Stop monitoring** button in the *
394389
395390
![Stop log streaming](./media/app-service-web-tutorial-dotnet-sqldatabase/stop-streaming.png)
396391
397-
## Manage your Azure app
398-
399-
Go to the [Azure portal](https://portal.azure.com) to manage the web app. Search for and select **App Services**.
400-
401-
![Search for Azure App Services](./media/app-service-web-tutorial-dotnet-sqldatabase/azure-portal-navigate-app-services.png)
402-
403-
Select the name of your Azure app.
404-
405-
![Portal navigation to Azure app](./media/app-service-web-tutorial-dotnet-sqldatabase/access-portal.png)
406-
407-
You have landed in your app's page.
408-
409-
By default, the portal shows the **Overview** page. This page gives you a view of how your app is doing. Here, you can also perform basic management tasks like browse, stop, start, restart, and delete. The tabs on the left side of the page show the different configuration pages you can open.
410-
411-
![App Service page in Azure portal](./media/app-service-web-tutorial-dotnet-sqldatabase/web-app-blade.png)
412-
413392
[!INCLUDE [Clean up section](../../includes/clean-up-section-portal-web-app.md)]
414393
415394
## Next steps
@@ -423,12 +402,11 @@ In this tutorial, you learned how to:
423402
> * Deploy the app to Azure
424403
> * Update the data model and redeploy the app
425404
> * Stream logs from Azure to your terminal
426-
> * Manage the app in the Azure portal
427405
428406
Advance to the next tutorial to learn how to easily improve the security of your connection Azure SQL Database.
429407
430408
> [!div class="nextstepaction"]
431-
> [Access SQL Database securely using managed identities for Azure resources](tutorial-connect-msi-sql-database.md)
409+
> [Tutorial: Connect to SQL Database from App Service without secrets using a managed identity](tutorial-connect-msi-sql-database.md)
432410
433411
More resources:
434412
23.1 KB
Loading

0 commit comments

Comments
 (0)