You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($eventType -ne “Microsoft.Maintenance.PostMaintenanceEvent”) {
235
-
Write-Output "Webhook not triggered as part of post-patching for maintenance run"
227
+
if ($eventType -ne "Microsoft.Maintenance.PostMaintenanceEvent") {
228
+
Write-Output "Webhook not triggered as part of post-patching for maintenance run"
236
229
return
237
230
}
238
231
@@ -247,17 +240,11 @@ if ($resourceSubscriptionIds.Count -eq 0) {
247
240
Start-Sleep -Seconds 30
248
241
Write-Output "Querying ARG to get machine details [MaintenanceRunId=$maintenanceRunId][ResourceSubscriptionIdsCount=$($resourceSubscriptionIds.Count)]"
249
242
$argQuery = @"
250
-
251
243
maintenanceresources
252
-
253
244
| where type =~ 'microsoft.maintenance/applyupdates'
254
-
255
245
| where properties.correlationId =~ '$($maintenanceRunId)'
256
-
257
246
| where id has '/providers/microsoft.compute/virtualmachines/'
0 commit comments