Skip to content

Commit 589bba9

Browse files
Merge pull request #286100 from SnehaSudhirG/04Sep-AUMScriptEdit
Minor edit to script
2 parents d29da0a + dfc63df commit 589bba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/update-manager/tutorial-webhooks-using-runbooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create pre and post events using a webhook with Automation runbooks.
33
description: In this tutorial, you learn how to create the pre and post events using webhook with Automation runbooks.
44
ms.service: azure-update-manager
5-
ms.date: 07/24/2024
5+
ms.date: 09/04/2024
66
ms.topic: tutorial
77
author: SnehaSudhirG
88
ms.author: sudhirsneha
@@ -53,7 +53,7 @@ In this tutorial, you learn how to:
5353
$notificationPayload = ConvertFrom-Json -InputObject $WebhookData.RequestBody
5454
$eventType = $notificationPayload[0].eventType
5555
56-
if ($eventType -ne “Microsoft.Maintenance.PreMaintenanceEvent” -or $eventType –ne “Microsoft.Maintenance.PostMaintenanceEvent” ) {
56+
if ($eventType -ne “Microsoft.Maintenance.PreMaintenanceEvent” -and $eventType –ne “Microsoft.Maintenance.PostMaintenanceEvent” ) {
5757
Write-Output "Webhook not triggered as part of pre or post patching for maintenance run"
5858
return
5959
}

0 commit comments

Comments
 (0)