Skilling tasks
- Enable Application Insights
- Disable logging for .NET core snapshot debugger
- Configure web app HTTP logs to be written to a Log Analytics workspace
- Configure SQL Insights data to be written to a Log Analytics workspace
- Enable file and configuration change tracking for web apps
Exercise instructions
Enable Application Insights
- In the Azure Portal Search Bar, enter rg-alpha and select rg-alpha from the list of results.
- From the list of items in the resource group, choose App Services for the Web App with an SQL Database.
- Under Monitoring choose Application Insights.
- On the Application Insights page, choose Turn On Application Insights.
- On the Application Insights page, ensure that Create a new resource is selected and that the Log Analytics Workspace is set to LogAnalytics1 and choose Apply.
- On the Apply monitoring settings dialog, choose Yes.
Disable logging for .NET core snapshot debugger
- In the Azure Portal Search Bar, enter rg-alpha and select rg-alpha from the list of results.
- From the list of items in the resource group, choose App Services for the Web App with an SQL Database.
- Under Monitoring choose Application Insights.
- Under Instrument your application, choose .NET Core and then set the Snapshot Debugger setting to Off. Choose Apply.
- On the Apply Monitoring Settings dialog box, choose Yes.
Configure web app HTTP logs to be written to a Log Analytics workspace
- In the Azure Portal Search Bar, enter rg-alpha and select rg-alpha from the list of results.
- From the list of items in the resource group, choose App Services for the Web App with an SQL Database.
- Under Monitoring, choose Diagnostic settings.
- On the Diagnostic settings page, select + Add diagnostic settings.
-
On the Diagnostic settings page, choose the following and select Save.
Property Value Diagnostic setting name httplogs Categories HTTP logs Destination details Send to Log Analytics workspace Subscription Your subscription Log Analytics workspace LogAnalytics1
Configure SQL Insights data to be written to a Log Analytics workspace
- In the Azure Portal Search Bar, enter rg-alpha and select rg-alpha from the list of results.
- From the list of items in the resource group, choose the sample SQL database.
- Under Monitoring, choose Diagnostic settings.
- On the Diagnostic settings page, choose Add diagnostic setting.
-
On the Diagnostic setting page, provide the following information and choose Save.
Property Value Diagnostic setting name InsightLogAnalytics Categories SQL Insights Destination details Send to Log Analytics workspace Subscription Your subscription Log Analytics workspace LogAnalytics1