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
} while ($skipToken -ne $null -and $skipToken.Length -ne 0)
106
+
} while ($skipToken -ne $null -and $skipToken.Length -ne 0)
107
+
111
108
if ($allMachines.Count -eq 0) {
112
109
Write-Output "No Machines were found."
113
110
break
114
111
}
115
-
}
116
-
117
-
```
118
-
119
-
4. To customize you can use either your existing scripts with the above modifications done or use the following scripts.
112
+
```
113
+
114
+
1. To customize you can use either your existing scripts with the above modifications done or use the following scripts.
120
115
121
116
122
117
### Sample scripts
@@ -352,11 +347,11 @@ Invoke-AzRestMethod `
352
347
1. On the **Maintenance Configuration** page, select the configuration.
353
348
1. Under **Settings**, select **Events**.
354
349
355
-
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/pre-post-select-events.png" alt-text="Screenshot that shows the options to select the events menu option." lightbox="tutorial-webhooks-using-runbooks/pre-post-select-events.png":::
350
+
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/pre-post-select-events.png" alt-text="Screenshot that shows the options to select the events menu option." lightbox="./media/tutorial-webhooks-using-runbooks/pre-post-select-events.png":::
356
351
357
352
1. Select **+Event Subscription** to create a pre/post maintenance event.
358
353
359
-
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/select-event-subscriptions.png" alt-text="Screenshot that shows the options to select the events subscriptions." lightbox="tutorial-webhooks-using-runbooks/select-event-subscriptions.png":::
354
+
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/select-event-subscriptions.png" alt-text="Screenshot that shows the options to select the events subscriptions." lightbox="./media/tutorial-webhooks-using-runbooks/select-event-subscriptions.png":::
360
355
361
356
1. On the **Create Event Subscription** page, enter the following details:
362
357
1. In the **Event Subscription Details** section, provide an appropriate name.
@@ -368,7 +363,7 @@ Invoke-AzRestMethod `
368
363
1. Select **Post Maintenance Event** for a post-event.
369
364
- In the **Endpoint details** section, the **Webhook** endpoint and select **Configure and Endpoint**.
370
365
- Provide the appropriate details such as post-event webhook **URL** to trigger the event.
371
-
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/create-event-subscription.png" alt-text="Screenshot that shows the options to create the events subscriptions." lightbox="tutorial-webhooks-using-runbooks/create-event-subscription.png":::
366
+
:::image type="content" source="./media/tutorial-webhooks-using-runbooks/create-event-subscription.png" alt-text="Screenshot that shows the options to create the events subscriptions." lightbox="./media/tutorial-webhooks-using-runbooks/create-event-subscription.png":::
0 commit comments