ArmComputeModelFactory.VirtualMachineInstallPatchesContent Method

Definition

Initializes a new instance of VirtualMachineInstallPatchesContent.

public static Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesContent VirtualMachineInstallPatchesContent (TimeSpan? maximumDuration = default, Azure.ResourceManager.Compute.Models.VmGuestPatchRebootSetting rebootSetting = default, Azure.ResourceManager.Compute.Models.WindowsParameters windowsParameters = default, Azure.ResourceManager.Compute.Models.LinuxParameters linuxParameters = default);
static member VirtualMachineInstallPatchesContent : Nullable<TimeSpan> * Azure.ResourceManager.Compute.Models.VmGuestPatchRebootSetting * Azure.ResourceManager.Compute.Models.WindowsParameters * Azure.ResourceManager.Compute.Models.LinuxParameters -> Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesContent
Public Shared Function VirtualMachineInstallPatchesContent (Optional maximumDuration As Nullable(Of TimeSpan) = Nothing, Optional rebootSetting As VmGuestPatchRebootSetting = Nothing, Optional windowsParameters As WindowsParameters = Nothing, Optional linuxParameters As LinuxParameters = Nothing) As VirtualMachineInstallPatchesContent

Parameters

maximumDuration
Nullable<TimeSpan>

Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours).

rebootSetting
VmGuestPatchRebootSetting

Defines when it is acceptable to reboot a VM during a software update operation.

windowsParameters
WindowsParameters

Input for InstallPatches on a Windows VM, as directly received by the API.

linuxParameters
LinuxParameters

Input for InstallPatches on a Linux VM, as directly received by the API.

Returns

A new VirtualMachineInstallPatchesContent instance for mocking.

Applies to