Skip to content

Commit 0262d79

Browse files
Merge pull request #267243 from naveenguna17/docs-editor/alerts-log-alert-query-samples-1708956841
Update alerts-log-alert-query-samples.md
2 parents ad911ab + 0f0908a commit 0262d79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/azure-monitor/alerts/alerts-log-alert-query-samples.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ This query finds virtual machines marked as critical that had a heartbeat more t
8181
arg("").resourcechanges
8282
| extend changeTime = todatetime(properties.changeAttributes.timestamp),
8383
changeType = tostring(properties.changeType),targetResourceType = tostring(properties.targetResourceType),
84-
changedBy = tostring(properties.changeAttributes.changedBy)
84+
changedBy = tostring(properties.changeAttributes.changedBy),
85+
createdResource = tostring(properties.targetResourceId)
8586
| where changeType == "Create" and changeTime <ago(1h)
86-
| project changeTime,targetResourceId,changedBy
87+
| project changeTime,createdResource,changedBy
88+
8789
}
8890
```
8991

0 commit comments

Comments
 (0)