PatchSettings Class

Specifies settings related to VM Guest Patching on Windows.

Inheritance
azure.mgmt.compute._serialization.Model
PatchSettings

Constructor

PatchSettings(*, patch_mode: str | _models.WindowsVMGuestPatchMode | None = None, enable_hotpatching: bool | None = None, assessment_mode: str | _models.WindowsPatchAssessmentMode | None = None, automatic_by_platform_settings: _models.WindowsVMGuestPatchAutomaticByPlatformSettings | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
patch_mode

Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.: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. Known values are: "Manual", "AutomaticByOS", and "AutomaticByPlatform".

enable_hotpatching

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

assessment_mode

Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.:code:
<br /> Possible values are:<br />``<br /> ImageDefault - You control the timing of patch assessments on a virtual machine.:code:
<br /> AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform".

automatic_by_platform_settings

Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows.

Variables

Name Description
patch_mode

Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.: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. Known values are: "Manual", "AutomaticByOS", and "AutomaticByPlatform".

enable_hotpatching

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

assessment_mode

Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.:code:
<br /> Possible values are:<br />``<br /> ImageDefault - You control the timing of patch assessments on a virtual machine.:code:
<br /> AutomaticByPlatform - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform".

automatic_by_platform_settings

Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows.