Skip to content

Commit abf866c

Browse files
committed
minor edits
1 parent aceefb6 commit abf866c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

articles/update-manager/pre-post-scripts-overview.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ The following are the scenarios where you can define pre and post events:
2727
|Turn on machines | Turn on the machine to apply updates.|
2828
|Create snapshot | Disk snaps used to recover data.|
2929
|Notification email | Send a notification alert before triggering a patch. |
30-
|Stop services | Stop services like Gateway services, NPExServices, SQL services etc.|
30+
|Stop services | Stop services like Gateway services, NPExServices, SQL services, etc.|
3131

3232
#### [Post-events](#tab/postevent)
3333

3434
| **Scenario**| **Description**|
3535
|----------|-------------|
3636
|Turn off | Turn off the machines after applying updates. |
3737
|Notifications | Send patch summary or an alert that patching is complete.|
38-
|Start services | Start services like SQL, health services etc. |
38+
|Start services | Start services like SQL, health services, etc. |
3939
|Reports| Post patching report.|
4040
|Tag change | Change tags and occasionally, turns off with tag change.|
4141

@@ -49,18 +49,18 @@ For a given schedule, you can include a pre-event, post-event, or both. Addition
4949
1. **Cancellation** - In this step, you can initiate the cancellation of the schedule run. Some scenarios where you might choose to cancel a schedule run include pre-event failures or pre-event didn't complete execution.
5050

5151
> [!NOTE]
52-
> You must initiate cancellation as part of the pre-event; Azure Update Manager or maintenance configuration will not automatically cancel the schedule. If you fail to cancel, the schedule run will proceed with installing updates during the user-defined maintenance window.
52+
> You must initiate cancellation as part of the pre-event; Azure Update Manager or maintenance configuration will not automatically cancel the schedule. If you fail to cancel, the schedule run proceeds with installing updates during the user-defined maintenance window.
5353
5454
1. **Updates installation** - Updates are installed as part of the user-defined schedule maintenance window.
55-
1. **Post-event** - The post-event runs immediately after updates are installed. It occurs either within the maintenance window if update installation is complete and there's window left or outside the window if the maintenance window has ended. For example: Turn off the VMs post completion of the patching.
55+
1. **Post-event** - The post-event runs immediately after updates are installed. It occurs either within the maintenance window if update installation is complete and there's window left or outside the window if the maintenance window is ended. For example: Turn off the VMs post completion of the patching.
5656

5757
> [!NOTE]
5858
> In Azure Update Manager, the pre-events run outside of the maintenance window and post events may run outside of the maintenance window. You must plan for this additional time required to complete the schedule execution on your machines.
5959
6060
1. **Schedule status** - The success or failure status of a schedule run refers only to the update installation on the machines that are part of the schedule. The schedule run status doesn't include the pre and post event status. If pre-event has failed and you called the cancellation API, the schedule run status is displayed as **canceled**.
6161

6262

63-
Azure Update Manager uses [Event Grid](../event-grid/overview.md) to create and manage pre and post events on scheduled maintenance configurations. In Event Grid, you can choose from event handlers such as Azure Webhooks, Azure Functions etc., to trigger your pre and post activity.
63+
Azure Update Manager uses [Event Grid](../event-grid/overview.md) to create and manage pre and post events on scheduled maintenance configurations. In Event Grid, you can choose from event handlers such as Azure Webhooks, Azure Functions, etc., to trigger your pre and post activity.
6464

6565
:::image type="content" source="./media/pre-post-scripts-overview/overview.png" alt-text="Screenshot that shows the sequence of execution for a schedule with pre and post." lightbox="./media/pre-post-scripts-overview/overview.png":::
6666

@@ -82,10 +82,10 @@ For example, if a maintenance schedule is set to start at **3:00 PM**, with the
8282
|----------|-------------|
8383
| 2:19 PM | Since the schedule run starts at 3:00 PM, you can modify the machines or scopes 40 mins before the start time (i.e) at 2:19 PM. </br> **Note** This applies if you're creating a new schedule or editing an existing schedule with a pre-event.
8484
| 2:20 PM - 2:30 PM | Since the pre-event gets triggered at least 30 mins prior, it can get triggered anytime between 2:20 PM to 2:30 PM. |
85-
| 2:30 PM - 2:50 PM | The pre-event runs from 2:30 PM to 2:50 PM. The pre-event must complete the tasks by 2:50 PM. </br> **Note** If you have more than one pre-event configured, all the events must run within 20 minutes. In case of multiple pre-events, all of them will execute independently of each other. You can customize as per your needs by defining the logic in the pre-events. For example, if you want two pre-events to run sequentially, you can include a delayed start time in your second pre-event’s logic. </br> If the pre-event continues to run beyond 20 mins or fails, you can choose to cancel the schedule run otherwise the patch installation proceeds irrespective of the pre-event run status.|
85+
| 2:30 PM - 2:50 PM | The pre-event runs from 2:30 PM to 2:50 PM. The pre-event must complete the tasks by 2:50 PM. </br> **Note** If you have more than one pre-event configured, all the events must run within 20 minutes. In multiple pre-events, all of them executes independently of each other. You can customize as per your needs by defining the logic in the pre-events. For example, if you want two pre-events to run sequentially, you can include a delayed start time in your second pre-event’s logic. </br> If the pre-event continues to run beyond 20 mins or fails, you can choose to cancel the schedule run otherwise the patch installation proceeds irrespective of the pre-event run status.|
8686
| 2:50 PM | The latest time that can invoke the cancellation API is 2:50 PM. </br> **Note** If cancellation API fails to get invoked or hasn't been set up, the patch installation proceeds to run.|
8787
| 3:00 PM | The schedule run is triggered at 3:00 PM. |
88-
| 6:55 PM | At 6:55 PM, the schedule completes installing the updates during the 3 hours 55-mins maintenance window. </br> The post event triggers at 6:55 PM once the updates are installed. </br> **Note** If you have defined a shorter maintenance window of 2 hours, the post maintenance event will trigger after 2 hours and if the update installation is completed before the stipulated time of 2 hours (i.e) 1 hours 50 mins, the post event will start immediately.
88+
| 6:55 PM | At 6:55 PM, the schedule completes installing the updates during the 3 hours 55-mins maintenance window. </br> The post event triggers at 6:55 PM once the updates are installed. </br> **Note** If you've defined a shorter maintenance window of 2 hours, the post maintenance event will trigger after 2 hours and if the update installation is completed before the stipulated time of 2 hours (i.e) 1 hours 50 mins, the post event will start immediately.
8989

9090
We recommend that you're watchful of the following:
9191
- If you're creating a new schedule or editing an existing schedule with a pre-event, you need at least 40 minutes prior to the start of maintenance window (3:00 PM in the above example) for the pre-event to run otherwise it leads to auto-cancellation of the current scheduled run.

0 commit comments

Comments
 (0)