Introduction
Monitoring is a critical aspect of managing cloud-based applications, as it provides visibility into application performance, user activity, and overall resource health. Azure Monitor, together with Application Insights and Log Analytics, enables organizations to collect, analyze, and act on telemetry data from their applications and infrastructure. In this exercise, I configured Application Insights for an Azure Web App, disabled the .NET Core Snapshot Debugger, enabled HTTP logging, and configured SQL Insights to send diagnostic data to a Log Analytics workspace. These configurations establish a centralized monitoring solution that supports proactive performance monitoring, troubleshooting, and operational efficiency.
- In the Azure Portal Search Bar, enter rg-alpha-Central and select rg-alpha-central 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-central and select rg-alpha-central 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-central and select rg-alpha-central 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.
Configure SQL Insights data to be written to a Log Analytics workspace
- In the Azure Portal Search Bar, enter rg-alpha-central and select rg-alpha-central 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.
Conclusion
By completing this exercise, I successfully configured comprehensive monitoring for both an Azure Web App and its associated SQL Database. I enabled Application Insights to collect application telemetry, disabled the .NET Core Snapshot Debugger to minimize unnecessary diagnostic overhead, configured HTTP logs for the Web App, and directed SQL diagnostic data to a Log Analytics workspace. These configurations provide a centralized platform for monitoring application performance, analyzing logs, and diagnosing issues, ensuring greater visibility, improved reliability, and more effective management of Azure resources.


























Top comments (1)
This exercise demonstrates the importance of implementing a centralized monitoring strategy within Azure environments. Integrating Application Insights with Log Analytics provides real-time visibility into application behavior and infrastructure performance, enabling administrators to quickly identify and resolve issues before they affect users. Additionally, configuring diagnostic settings for both web applications and SQL databases ensures that valuable telemetry and operational data are retained for analysis, strengthening observability, enhancing troubleshooting capabilities, and supporting informed operational decision-making.