Class PatchSettings

java.lang.Object
com.microsoft.azure.management.compute.PatchSettings

public class PatchSettings extends Object
Specifies settings related to VM Guest Patching on Windows.
  • Constructor Details

    • PatchSettings

      public PatchSettings()
  • Method Details

    • patchMode

      public WindowsVMGuestPatchMode 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

      public PatchSettings 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. 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

      public Boolean 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

      public PatchSettings withEnableHotpatching(Boolean enableHotpatching)
      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.