Skip to content

Commit e8ef664

Browse files
authored
Merge pull request #102243 from DarrenTurchiarelli/patch-3
Update get-resource-changes.md
2 parents dde73e4 + f8a3057 commit e8ef664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/governance/resource-graph/how-to/get-resource-changes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ resourcechanges  
301301
```kusto
302302
resourcechanges 
303303
|extend targetResourceId = tostring(properties.targetResourceId), changeType = tostring(properties.changeType), createTime = todatetime(properties.changeAttributes.timestamp) 
304-
| where createTime > ago(7d) and changeType == "Create"
304+
| where createTime > ago(7d) and changeType == "Create" or changeType == "Update" or changeType == "Delete"
305305
| project  targetResourceId, changeType, createTime 
306-
| join ( resources | extendtargetResourceId=id) ontargetResourceId
307-
| where tags[“Environment] =~ prod
306+
| join ( resources | extend targetResourceId=id) on targetResourceId
307+
| where tags ['Environment'] =~ 'prod'
308308
| order by createTime desc 
309309
| project createTime, id, resourceGroup, type
310310
```

0 commit comments

Comments
 (0)