Skip to content

Commit 3d0f5e6

Browse files
authored
Merge pull request #124643 from josh-martin-1/patch-1
Update code example in pre-post-events-schedule-maintenance-configuration.md
2 parents 9a92963 + f582e20 commit 3d0f5e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/update-manager/pre-post-events-schedule-maintenance-configuration.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ In the **Event Subscription Details** section, provide an appropriate name.
8686
$EventSubscriptionName = "PreEventWebhook"
8787
8888
$PreEventWebhookEndpoint = "<Webhook URL>"
89-
90-
New-AzEventGridSystemTopicEventSubscription -ResourceGroupName $ResourceGroupForSystemTopic -SystemTopicName $SystemTopicName -EventSubscriptionName $EventSubscriptionName -Endpoint $PreEventWebhookEndpoint -IncludedEventType $IncludedEventTypes
89+
90+
$dest = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl $PreEventWebhookEndpoint
91+
92+
New-AzEventGridSystemTopicEventSubscription -ResourceGroupName $ResourceGroupForSystemTopic -SystemTopicName $SystemTopicName -EventSubscriptionName $EventSubscriptionName -Endpoint $PreEventWebhookEndpoint -IncludedEventType $IncludedEventTypes -Destination $dest
9193
9294
# Azure Function
9395
@@ -268,8 +270,10 @@ In the **Event Subscription Details** section, provide an appropriate name.
268270
$EventSubscriptionName = "PreEventWebhook"
269271
270272
$PreEventWebhookEndpoint = "<Webhook URL>"
273+
274+
$dest = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl $PreEventWebhookEndpoint
271275
272-
New-AzEventGridSystemTopicEventSubscription -ResourceGroupName $ResourceGroupForSystemTopic -SystemTopicName $SystemTopicName -EventSubscriptionName $EventSubscriptionName -Endpoint $PreEventWebhookEndpoint -IncludedEventType $IncludedEventTypes
276+
New-AzEventGridSystemTopicEventSubscription -ResourceGroupName $ResourceGroupForSystemTopic -SystemTopicName $SystemTopicName -EventSubscriptionName $EventSubscriptionName -Endpoint $PreEventWebhookEndpoint -IncludedEventType $IncludedEventTypes -Destination $dest
273277
274278
# Azure Function
275279

0 commit comments

Comments
 (0)