Review Azure Log Profile export categories

Verify that required management activity reaches the actual log destination.

Description

Legacy Azure Log Profiles used Write, Delete and Action to select management events for export. A misspelled category could prevent export even though Azure recorded the event in the Activity Log.

Potential impact

  • Change and deletion history may be unavailable in external storage or monitoring tools.
  • Missing long-term records can hinder incident analysis and audit response.

Remediation

Use an Activity Log diagnostic setting. Select Administrative for Resource Manager write, delete and action events, then verify that these events reach your destination.

Examples

These subscription-scope legacy excerpts compare categories only. Storage or Event Hubs destinations are omitted; use diagnostic settings for new exports.

Before

bicep
resource activityLogProfile 'microsoft.insights/logprofiles@2016-03-01' = {
  name: 'activity-log-profile'
  location: 'eastus'
  properties: {
    locations: [
      'eastus'
    ]
    categories: [
      'Writ'
    ]
    retentionPolicy: {
      enabled: true
      days: 450
    }
  }
}

Writ is a misspelling of the intended Write value and may prevent the required export from being configured correctly.

After

bicep
resource activityLogProfile 'microsoft.insights/logprofiles@2016-03-01' = {
  name: 'activity-log-profile'
  location: 'eastus'
  properties: {
    locations: [
      'eastus'
    ]
    categories: [
      'Write'
      'Delete'
      'Action'
    ]
    retentionPolicy: {
      enabled: true
      days: 450
    }
  }
}

Write, Delete and Action are selected in the historical format. Regions, destinations and actual delivery still need verification.

References