Skip to content

Commit ff416e5

Browse files
committed
Feedback incorporated
1 parent 2429503 commit ff416e5

File tree

1 file changed

+104
-22
lines changed

1 file changed

+104
-22
lines changed

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

Lines changed: 104 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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/13/2023
5+
ms.date: 04/18/2023
66
ms.topic: conceptual
77
author: snehasudhirG
88
ms.author: sudhirsneha
@@ -16,28 +16,46 @@ This article is an overview on how to configure Schedule patching and Automatic
1616

1717
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.
1818

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.
19+
For customizing control over your patch installation, you can use [schedule patching](updates-maintenance-schedules.md#scheduled-patching) to define your own 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 has been introduced - **ByPassPlatformSafetyChecksOnUserSchedule**, a VM property that allows you to accurately determine the VMs that must be schedule patched or autopatched.
2022

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.
2223

2324
> [!IMPORTANT]
2425
> 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.
2526
2627

27-
## Prerequisite for schedule patching on Azure VMs
28+
## Enable schedule patching on Azure VMs
2829

2930
# [Azure portal](#tab/new-prereq-portal)
3031

31-
**Patch orchestration = Azure-orchestrated with user managed schedules (Preview)**.
32+
**Prerequisite**
3233

33-
- Select the patch orchestration option as **Azure-orchestrated with user managed schedules(Preview)**.
34+
Patch orchestration = Azure-orchestrated with user managed schedules (Preview).
3435

36+
Select the patch orchestration option as **Azure-orchestrated with user managed schedules(Preview)**.
3537
The new patch orchestration option enables the following VM properties on your behalf after receiving your consent:
3638

3739
- Patch mode = Azure-orchestrated
3840
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
3941

40-
**Enable patch orchestration for existing VMs**
42+
**Enable for new VMs**
43+
44+
You can select the patch orchestration option for new VMs that would be associated with the schedules:
45+
46+
To update the patch mode, follow these steps:
47+
48+
1. Sign in to the [Azure portal](https://portal.azure.com)
49+
1. Go to **Virtual machine**, and select **+Create** to open *Create a virtual machine* page.
50+
1. In **Basics** tab, complete all the mandatory fields.
51+
1. In **Management** tab, under **Guest OS updates**, for **Patch orchestration options**, select *Azure-orchestrated with user managed schedules(Preview)*.
52+
1. After you complete the entries in **Monitoring**, **Advanced** and **Tags** tabs.
53+
1. Select **Review + Create** and select **Create** to create a new VM with the appropriate patch orchestration option.
54+
55+
To schedule patch the newly created VMs, follow the procedure from step 2 in **Enable for existing VMs**.
56+
57+
58+
**Enable for existing VMs**
4159

4260
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:
4361

@@ -47,17 +65,45 @@ You can update the patch orchestration option for existing VMs that either alrea
4765
To update the patch mode, follow these steps:
4866

4967
1. Sign in to the [Azure portal](https://portal.azure.com)
50-
1. Go to **Update management center (Preview)**, select **Update Settings**.
68+
1. Go to **Update management center (Preview)**, select **Update Settings**.
5169
1. In **Change update settings**, select **+Add machine**.
5270
1. In **Select resources**, select your VMs and then select **Add**.
5371
1. In **Change update settings**, under **Patch orchestration**, select *Azure orchestrated with user managed schedules (Preview)* and then select **Save**.
5472

73+
Attach a schedule after you complete the above steps.
74+
5575
# [REST API](#tab/new-prereq-rest-api)
5676

77+
**Prerequisite**
78+
5779
- Patch mode = AutomaticByPlatform
5880
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
5981

60-
**Enable patch orchestration for existing VMs**
82+
**Enable for new VMs**
83+
84+
```
85+
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
86+
```
87+
88+
```json
89+
{
90+
"location": "<location>",
91+
"properties": {
92+
"osProfile": {
93+
"windowsConfiguration": {
94+
"provisionVMAgent": true,
95+
"enableAutomaticUpdates": true,
96+
"patchSettings": {
97+
"patchMode": "AutomaticByPlatform"
98+
}
99+
}
100+
}
101+
}
102+
}
103+
```
104+
105+
**Enable for existing VMs**
106+
61107
```
62108
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
63109
```
@@ -84,37 +130,72 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
84130
85131
---
86132

87-
## Prerequisite for automatic guest VM patching on Azure VMs
133+
## Enable automatic guest VM patching on Azure VMs
88134

89135
To enable automatic guest VM patching on your Azure VMs now, follow these steps:
90136

91137
# [Azure portal](#tab/auto-portal)
92138

93-
- Patch mode = Azure-orchestrated
94-
95-
# [REST API](#tab/auto-rest-api)
96-
97-
- Patch mode = AutomaticByPlatform
98-
- BypassPlatformSafetyChecksOnUserSchedule = FALSE
139+
**Prerequisite**
99140

100-
---
141+
Patch mode = Azure-orchestrated
101142

102-
## Enable patch orchestration for new VMs
143+
**Enable for new VMs**
103144

104145
You can select the patch orchestration option for new VMs that would be associated with the schedules:
105146

106-
# [Azure portal](#tab/patchorch-portal)
107-
108147
To update the patch mode, follow these steps:
109148

110149
1. Sign in to the [Azure portal](https://portal.azure.com)
111150
1. Go to **Virtual machine**, and select **+Create** to open *Create a virtual machine* page.
112151
1. In **Basics** tab, complete all the mandatory fields.
113-
1. In **Management** tab, under **Guest OS updates**, for **Patch orchestration options**, select *Azure-orchestrated with user managed schedules(Preview)*.
152+
1. In **Management** tab, under **Guest OS updates**, for **Patch orchestration options**, select *Azure-orchestrated*.
114153
1. After you complete the entries in **Monitoring**, **Advanced** and **Tags** tabs.
115154
1. Select **Review + Create** and select **Create** to create a new VM with the appropriate patch orchestration option.
116155

117-
# [REST API](#tab/patchorch-rest-api)
156+
157+
**Enable for existing VMs**
158+
159+
To update the patch mode, follow these steps:
160+
161+
1. Sign in to the [Azure portal](https://portal.azure.com)
162+
1. Go to **Update management center (Preview)**, select **Update Settings**.
163+
1. In **Change update settings**, select **+Add machine**.
164+
1. In **Select resources**, select your VMs and then select **Add**.
165+
1. In **Change update settings**, under **Patch orchestration**, select *Azure-orchestrated Global safe deployment* and then select **Save**.
166+
167+
168+
# [REST API](#tab/auto-rest-api)
169+
170+
**Prerequisites**
171+
172+
- Patch mode = AutomaticByPlatform
173+
- BypassPlatformSafetyChecksOnUserSchedule = FALSE
174+
175+
**Enable for new VMs**
176+
177+
```
178+
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
179+
```
180+
181+
```json
182+
{
183+
"location": "<location>",
184+
"properties": {
185+
"osProfile": {
186+
"windowsConfiguration": {
187+
"provisionVMAgent": true,
188+
"enableAutomaticUpdates": true,
189+
"patchSettings": {
190+
"patchMode": "AutomaticByPlatform"
191+
}
192+
}
193+
}
194+
}
195+
}
196+
```
197+
198+
**Enable for existing VMs**
118199

119200
```
120201
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
@@ -138,6 +219,7 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
138219
```
139220
---
140221

222+
141223
## User scenarios
142224

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

0 commit comments

Comments
 (0)