Skip to content

Commit 2429503

Browse files
committed
feedback incorporated
1 parent f080ade commit 2429503

File tree

1 file changed

+32
-39
lines changed

1 file changed

+32
-39
lines changed

articles/update-center/prerequsite-for-schedule-patching.md

Lines changed: 32 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@
22
title: Prerequisites for scheduled patching in update management center (preview).
33
description: The article describes the new prerequisites to configure scheduled patching in Update management center (preview).
44
ms.service: update-management-center
5-
ms.date: 04/11/2023
5+
ms.date: 04/13/2023
66
ms.topic: conceptual
77
author: snehasudhirG
88
ms.author: sudhirsneha
99
---
1010

11-
# Configure patching using the new prerequisite
11+
# Configure Azure VMs for enhanced patching
1212

1313
**Applies to:** :heavy_check_mark: Windows VMs :heavy_check_mark: Linux VMs :heavy_check_mark: Azure VMs.
1414

1515
This article is an overview on how to configure Schedule patching and Automatic guest VM patching on Azure VMs using the new prerequisite. The steps to configure both the patching options on Arc VMs continue to remain the same.
16-
17-
Currently, you can enable [Automatic guest VM patching](../virtual-machines/automatic-vm-guest-patching.md) (Autopatch) by setting the patch mode to **Azure-orchestrated** or **AutomaticByPlatform** where patches are automatically applied during off-peak hours. To have additional control over your patch installation, you can also use schedule patching to define your own custom maintenance window. You can enable schedule patching by setting the patch mode to **Azure orchestrated**, or **AutomaticByPlatform** and attaching a schedule to the Azure VM.
1816

19-
In certain cases, when you remove the schedule from a VM, there is a possibility that the VM may get accidentally autopatched and subsequently rebooted. To avoid accidental or unintentional patching, the new prerequisite, **ByPassPlatformSafetyChecksOnUserSchedule**, a VM property allows you to accurately determine the VMs that must be schedule patched or autopatched.
17+
Currently, you can enable [Automatic guest VM patching](../virtual-machines/automatic-vm-guest-patching.md) (Autopatch) by setting the patch mode to **Azure-orchestrated** or **AutomaticByPlatform** on Azure portal and using REST API respectively, where patches are automatically applied during off-peak hours.
18+
19+
For additional control over your patch installation, you use [schedule patching](updates-maintenance-schedules.md#scheduled-patching) to define your own custom maintenance window. You can [enable schedule patching](scheduled-patching.md#schedule-recurring-updates-on-single-vm) by setting the patch mode to **Azure orchestrated**, or **AutomaticByPlatform** and attaching a schedule to the Azure VM.
20+
21+
However, in certain cases, when you remove the schedule from a VM, there is a possibility that the VM may be autopatched for critical or security patches and subsequently rebooted. To avoid such accidental or unintentional patching, a new prerequisite - **ByPassPlatformSafetyChecksOnUserSchedule**, a VM property is introduced that allows you to accurately determine the VMs that must be schedule patched or autopatched.
22+
23+
> [!IMPORTANT]
24+
> For a seamless scheduled patching experience, you must ensure that the new VM property is enabled on all your Azure VMs (existing or new) that have schedules attached to them **before April 30, 2023**. Failing to update will give an error that the prerequisites aren't met.
2025
2126

2227
## Prerequisite for schedule patching on Azure VMs
2328

24-
To enable schedule patching on your VMs now, follow these steps:
25-
2629
# [Azure portal](#tab/new-prereq-portal)
2730

2831
**Patch orchestration = Azure-orchestrated with user managed schedules (Preview)**.
@@ -34,41 +37,13 @@ The new patch orchestration option enables the following VM properties on your b
3437
- Patch mode = Azure-orchestrated
3538
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
3639

37-
38-
# [REST API](#tab/new-prereq-rest-api)
39-
40-
- Patch mode = AutomaticByPlatform
41-
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
42-
43-
---
44-
45-
## Prerequisite for automatic guest VM patching on Azure VMs
46-
47-
To enable automatic guest VM patching on your Azure VMs now, follow these steps:
48-
49-
# [Azure portal](#tab/auto-portal)
50-
51-
- Patch mode = Azure-orchestrated
52-
53-
# [REST API](#tab/auto-rest-api)
54-
55-
- Patch mode = AutomaticByPlatform
56-
- BypassPlatformSafetyChecksOnUserSchedule = FALSE
57-
58-
---
59-
60-
> [!IMPORTANT]
61-
> For a seamless scheduled patching experience, you must ensure that the new VM property is enabled on all your Azure VMs (existing or new) that have schedules attached to them **before April 30, 2023**. Failing to update will give an error that the prerequisites aren't met.
62-
63-
## Enable patch orchestration for existing VMs
40+
**Enable patch orchestration for existing VMs**
6441

6542
You can update the patch orchestration option for existing VMs that either already have schedules associated or are to be newly associated with a schedule:
6643

6744
> [!NOTE]
6845
> If the **Patch orchestration** is set as *Azure orchestrated*, the **BypassPlatformSafetyChecksOnUserSchedule** is set to *False* and there is no schedule associated, the VM(s) will be autopatched.
6946
70-
# [Azure portal](#tab/prereq-portal)
71-
7247
To update the patch mode, follow these steps:
7348

7449
1. Sign in to the [Azure portal](https://portal.azure.com)
@@ -77,9 +52,12 @@ To update the patch mode, follow these steps:
7752
1. In **Select resources**, select your VMs and then select **Add**.
7853
1. In **Change update settings**, under **Patch orchestration**, select *Azure orchestrated with user managed schedules (Preview)* and then select **Save**.
7954

55+
# [REST API](#tab/new-prereq-rest-api)
8056

81-
# [REST API](#tab/prereq-rest-api)
57+
- Patch mode = AutomaticByPlatform
58+
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
8259

60+
**Enable patch orchestration for existing VMs**
8361
```
8462
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
8563
```
@@ -101,10 +79,26 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
10179
}
10280
```
10381
---
104-
10582
> [!NOTE]
10683
> Currently, you can only enable the new prerequisite for schedule patching via Azure portal and REST API. It cannot be enabled via Azure CLI and PowerShell.
10784
85+
---
86+
87+
## Prerequisite for automatic guest VM patching on Azure VMs
88+
89+
To enable automatic guest VM patching on your Azure VMs now, follow these steps:
90+
91+
# [Azure portal](#tab/auto-portal)
92+
93+
- Patch mode = Azure-orchestrated
94+
95+
# [REST API](#tab/auto-rest-api)
96+
97+
- Patch mode = AutomaticByPlatform
98+
- BypassPlatformSafetyChecksOnUserSchedule = FALSE
99+
100+
---
101+
108102
## Enable patch orchestration for new VMs
109103

110104
You can select the patch orchestration option for new VMs that would be associated with the schedules:
@@ -144,7 +138,6 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
144138
```
145139
---
146140

147-
148141
## User scenarios
149142

150143
**Scenarios** | **Azure-orchestrated** | **BypassPlatformSafetyChecksOnUserSchedule** | **Schedule Associated** |**Expected behavior in Azure** |

0 commit comments

Comments
 (0)