PatchSettings Class

Specifies settings related to VM Guest Patching on Windows.

Inheritance
PatchSettings

Constructor

PatchSettings(*, patch_mode: Optional[Union[str, azure.mgmt.compute.v2020_12_01.models._compute_management_client_enums.WindowsVMGuestPatchMode]] = None, enable_hotpatching: Optional[bool] = None, **kwargs)

Parameters

patch_mode
str or WindowsVMGuestPatchMode
Required

Specifies the mode of VM Guest Patching to IaaS virtual machine.:code:
<br /> Possible values are:<br />``<br /> Manual - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false:code:
<br /> AutomaticByOS - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br />``<br /> AutomaticByPlatform - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform".

enable_hotpatching
bool
Required

Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'.