Skip to content
Related Articles
Open in App
Not now

Related Articles

Microsoft Azure – Configure Diagnostic Settings For Azure Subscription

Improve Article
Save Article
  • Last Updated : 30 Nov, 2021
Improve Article
Save Article

Enabling the Diagnostics Setting for Azure Subscription will help in getting the Activity Logs that were performed on Azure Subscription. It will collect the activity logs of Operation Name, Status, Time, Subscription, Event initiated by, and much more in-depth.


  1. Active Azure Subscription
  2. Log Analytics Workspace
  3. The Following Roles are required on the subscription: Owner, Contributor, or User Specified Access.


Follow the steps to configure the diagnostics for an Azure subscription.

Step 1: Log in to Azure Portal.

Step 2: Navigate to Subscriptions and choose your active azure subscription which you want to enable diagnostic settings.

Step 3: Select your active Azure subscription.

Step 4: After selecting the subscription, from the page left menu click on Activity log >> then click on the Diagnostics Settings button.

Step 5: Now, click on “+ Add diagnostic settings”, then give a Diagnostic settings name.

The following are the Category logs (Select all the Category Logs):

  • Administrative
  • Security
  • ServiceHealth
  • Alert
  • Recommendation
  • Policy
  • Autoscale
  • ResourceHealth

Under Destination details >> Select “Send to Log Analytics workspace” >> Subscription: Select your Active Azure Subscription (if you have multiple subscriptions and if you already have another Log Analytics Workspace you can use that as well.) >> Log Analytics workspace: Select your Workspace from the dropdown. If you don’t have to create one.

  • Click on “Save” to make the changes.

Step 6: After saving the changes to get the logs in Log Analytics Workspace we have to wait for a least half an hour to collect logs.

Step 7: This step is for verification >>To check the logs go to Activity Logs for your select subscription. Do some kind of create, delete, update activity. To see the changes in the activity log.

You can check the activity logs of Operation Name, Status, Time, Subscription, and Event initiated by.

That’s it you are done.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!