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
Copy file name to clipboardExpand all lines: articles/update-center/prerequsite-for-schedule-patching.md
+32-39Lines changed: 32 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,30 @@
2
2
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/11/2023
5
+
ms.date: 04/13/2023
6
6
ms.topic: conceptual
7
7
author: snehasudhirG
8
8
ms.author: sudhirsneha
9
9
---
10
10
11
-
# Configure patching using the new prerequisite
11
+
# Configure Azure VMs for enhanced patching
12
12
13
13
**Applies to:**:heavy_check_mark: Windows VMs :heavy_check_mark: Linux VMs :heavy_check_mark: Azure VMs.
14
14
15
15
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.
18
16
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.
20
25
21
26
22
27
## Prerequisite for schedule patching on Azure VMs
23
28
24
-
To enable schedule patching on your VMs now, follow these steps:
25
-
26
29
# [Azure portal](#tab/new-prereq-portal)
27
30
28
31
**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
34
37
- Patch mode = Azure-orchestrated
35
38
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
36
39
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:
> 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**
64
41
65
42
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:
66
43
67
44
> [!NOTE]
68
45
> 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.
69
46
70
-
# [Azure portal](#tab/prereq-portal)
71
-
72
47
To update the patch mode, follow these steps:
73
48
74
49
1. Sign in to the [Azure portal](https://portal.azure.com)
@@ -77,9 +52,12 @@ To update the patch mode, follow these steps:
77
52
1. In **Select resources**, select your VMs and then select **Add**.
78
53
1. In **Change update settings**, under **Patch orchestration**, select *Azure orchestrated with user managed schedules (Preview)* and then select **Save**.
79
54
55
+
# [REST API](#tab/new-prereq-rest-api)
80
56
81
-
# [REST API](#tab/prereq-rest-api)
57
+
- Patch mode = AutomaticByPlatform
58
+
- BypassPlatformSafetyChecksOnUserSchedule = TRUE
82
59
60
+
**Enable patch orchestration for existing VMs**
83
61
```
84
62
PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVirtualMachine?api-version=2020-12-01`
85
63
```
@@ -101,10 +79,26 @@ PUT on `/subscriptions/subscription_id/resourceGroups/myResourceGroup/providers/
101
79
}
102
80
```
103
81
---
104
-
105
82
> [!NOTE]
106
83
> 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.
107
84
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:
0 commit comments