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
title: Prerequisites for scheduled patching in update management center (preview).
3
3
description: The article describes the new prerequisites to configure scheduled patching in Update management center (preview).
4
4
ms.service: update-management-center
5
-
ms.date: 04/13/2023
5
+
ms.date: 04/18/2023
6
6
ms.topic: conceptual
7
7
author: snehasudhirG
8
8
ms.author: sudhirsneha
@@ -16,28 +16,46 @@ This article is an overview on how to configure Schedule patching and Automatic
16
16
17
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
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.
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.
20
22
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
23
24
> [!IMPORTANT]
24
25
> 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.
25
26
26
27
27
-
## Prerequisite for schedule patching on Azure VMs
28
+
## Enable schedule patching on Azure VMs
28
29
29
30
# [Azure portal](#tab/new-prereq-portal)
30
31
31
-
**Patch orchestration = Azure-orchestrated with user managed schedules (Preview)**.
32
+
**Prerequisite**
32
33
33
-
- Select the patch orchestration option as **Azure-orchestrated with user managed schedules(Preview)**.
34
+
Patch orchestration = Azure-orchestrated with user managed schedules(Preview).
34
35
36
+
Select the patch orchestration option as **Azure-orchestrated with user managed schedules(Preview)**.
35
37
The new patch orchestration option enables the following VM properties on your behalf after receiving your consent:
36
38
37
39
- Patch mode = Azure-orchestrated
38
40
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
39
41
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**
41
59
42
60
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:
43
61
@@ -47,17 +65,45 @@ You can update the patch orchestration option for existing VMs that either alrea
47
65
To update the patch mode, follow these steps:
48
66
49
67
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**.
51
69
1. In **Change update settings**, select **+Add machine**.
52
70
1. In **Select resources**, select your VMs and then select **Add**.
53
71
1. In **Change update settings**, under **Patch orchestration**, select *Azure orchestrated with user managed schedules (Preview)* and then select **Save**.
54
72
73
+
Attach a schedule after you complete the above steps.
74
+
55
75
# [REST API](#tab/new-prereq-rest-api)
56
76
77
+
**Prerequisite**
78
+
57
79
- Patch mode = AutomaticByPlatform
58
80
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
59
81
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
+
61
107
```
62
108
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
63
109
```
@@ -84,37 +130,72 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
84
130
85
131
---
86
132
87
-
## Prerequisite for automatic guest VM patching on Azure VMs
133
+
## Enable automatic guest VM patching on Azure VMs
88
134
89
135
To enable automatic guest VM patching on your Azure VMs now, follow these steps:
You can select the patch orchestration option for new VMs that would be associated with the schedules:
105
146
106
-
# [Azure portal](#tab/patchorch-portal)
107
-
108
147
To update the patch mode, follow these steps:
109
148
110
149
1. Sign in to the [Azure portal](https://portal.azure.com)
111
150
1. Go to **Virtual machine**, and select **+Create** to open *Create a virtual machine* page.
112
151
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*.
114
153
1. After you complete the entries in **Monitoring**, **Advanced** and **Tags** tabs.
115
154
1. Select **Review + Create** and select **Create** to create a new VM with the appropriate patch orchestration option.
116
155
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**.
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**
118
199
119
200
```
120
201
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/
0 commit comments