Skip to content

Instantly share code, notes, and snippets.

@andrewmatveychuk
Created August 1, 2023 11:29
Show Gist options
  • Save andrewmatveychuk/9ab0b3d8a05e63e81600fe60c77dcc43 to your computer and use it in GitHub Desktop.
Save andrewmatveychuk/9ab0b3d8a05e63e81600fe60c77dcc43 to your computer and use it in GitHub Desktop.
Get all changes in a resource group
resourcechanges
| where resourceGroup =~ 'your_resource_group_name'
| extend changeTime = todatetime(properties.changeAttributes.timestamp),
targetResourceId = tostring(properties.targetResourceId),
changeType = tostring(properties.changeType),
correlationId = properties.changeAttributes.correlationId,
changedProperties = properties.changes,
changeCount = properties.changeAttributes.changesCount
| order by changeTime desc
| project changeTime, targetResourceId, changeType, correlationId, changeCount, changedProperties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment