Class PatchSettings
java.lang.Object
com.microsoft.azure.management.compute.PatchSettings
Specifies settings related to VM Guest Patching on Windows.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet enables customers to patch their Azure VMs without requiring a reboot.Get specifies the mode of VM Guest Patching to IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine.withEnableHotpatching
(Boolean enableHotpatching) Set enables customers to patch their Azure VMs without requiring a reboot.withPatchMode
(WindowsVMGuestPatchMode patchMode) Set specifies the mode of VM Guest Patching to IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine.
-
Constructor Details
-
PatchSettings
public PatchSettings()
-
-
Method Details
-
patchMode
Get specifies the mode of VM Guest Patching to IaaS virtual machine.<br /><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<br /><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'.- Returns:
- the patchMode value
-
withPatchMode
Set specifies the mode of VM Guest Patching to IaaS virtual machine.<br /><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<br /><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'.- Parameters:
patchMode
- the patchMode value to set- Returns:
- the PatchSettings object itself.
-
enableHotpatching
Get 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'.- Returns:
- the enableHotpatching value
-
withEnableHotpatching
Set 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'.- Parameters:
enableHotpatching
- the enableHotpatching value to set- Returns:
- the PatchSettings object itself.
-