3.8 Azure Activity Log, Diagnostics, and Resource Health

Key Takeaways

  • The Azure Activity Log records all management-plane operations on resources — who did what, when, and from where.
  • Activity Log events are retained for 90 days by default and can be archived to Log Analytics or Storage for longer retention.
  • Diagnostic settings enable you to route platform metrics and logs to Log Analytics, Storage Accounts, or Event Hubs.
  • Resource Health provides a personalized dashboard showing the current and historical health status of individual Azure resources.
  • Combining Activity Log, Diagnostic Settings, and Azure Monitor Alerts creates a comprehensive monitoring strategy.
Last updated: March 2026

Azure Activity Log, Diagnostics, and Resource Health

Quick Answer: Activity Log = records WHO did WHAT on your resources (audit trail). Diagnostic Settings = route metrics/logs to storage destinations. Resource Health = shows health of individual resources.

Azure Activity Log

The Activity Log (formerly Audit Log) records all management-plane (control-plane) operations on your Azure resources. It answers the questions: Who performed what action on which resource and when?

What the Activity Log Records

Event CategoryExamples
AdministrativeCreate VM, delete storage account, assign RBAC role
Service HealthService incidents, planned maintenance events
Resource HealthHealth status changes for your resources
AlertAzure Monitor alert activations
AutoscaleScale up/down events
RecommendationAzure Advisor recommendations
SecurityMicrosoft Defender for Cloud alerts
PolicyAzure Policy evaluation events

Activity Log Details

Each Activity Log entry includes:

  • Timestamp — When the event occurred
  • Caller — Who initiated the operation (user, service principal)
  • Operation — What was done (Create, Delete, Update, Action)
  • Status — Success, Failed, Started
  • Resource — Which resource was affected
  • Subscription — Which subscription
  • Correlation ID — Links related events together

Retention and Export

DestinationRetentionUse Case
Azure Portal90 daysQuick lookup and troubleshooting
Log AnalyticsConfigurable (30 days - 2 years)KQL queries, correlation with other logs
Storage AccountUnlimited (you manage lifecycle)Long-term archival for compliance
Event HubsReal-time streamingIntegration with SIEM or third-party tools

Diagnostic Settings

Diagnostic Settings route platform metrics and resource logs from Azure services to one or more destinations:

DestinationPurpose
Log Analytics workspaceQuery and analyze with KQL, create dashboards
Storage AccountLong-term archival at low cost
Event HubStream to external SIEM or analytics tools
Partner solutionSend to third-party monitoring tools

Each Azure resource type has specific diagnostic categories that can be individually enabled. For example, a Storage Account might have categories for read, write, and delete operations.

Resource Health

Resource Health provides a personalized dashboard showing whether your specific Azure resources are experiencing problems:

StatusMeaning
AvailableNo issues detected — resource is functioning normally
UnavailableA platform or non-platform event has impacted the resource
DegradedResource performance is reduced
UnknownNo health information received for 10+ minutes

Root Cause Analysis: When a resource is unavailable, Resource Health provides:

  • Whether the issue is caused by Azure (platform event) or by your configuration
  • Recommended actions to resolve the issue
  • Links to relevant support resources

On the Exam: Activity Log records management operations (who, what, when). Diagnostic Settings route resource-specific metrics and logs. Resource Health shows the current status of individual resources. These are distinct but complementary monitoring capabilities.

Test Your Knowledge

How long are Azure Activity Log events retained by default in the Azure Portal?

A
B
C
D
Test Your Knowledge

What does the Azure Activity Log record?

A
B
C
D
Test Your Knowledge

Which monitoring feature routes platform metrics and logs to Log Analytics, Storage Accounts, or Event Hubs?

A
B
C
D