Condividi tramite


VirtualMachineScaleSetUpdateOSDisk Constructors

Definition

Overloads

VirtualMachineScaleSetUpdateOSDisk()

Initializes a new instance of the VirtualMachineScaleSetUpdateOSDisk class.

VirtualMachineScaleSetUpdateOSDisk(Nullable<CachingTypes>, Nullable<Boolean>, Nullable<Int32>, VirtualHardDisk, IList<String>, VirtualMachineScaleSetManagedDiskParameters, String)

Initializes a new instance of the VirtualMachineScaleSetUpdateOSDisk class.

VirtualMachineScaleSetUpdateOSDisk()

Initializes a new instance of the VirtualMachineScaleSetUpdateOSDisk class.

public VirtualMachineScaleSetUpdateOSDisk ();
Public Sub New ()

Applies to

VirtualMachineScaleSetUpdateOSDisk(Nullable<CachingTypes>, Nullable<Boolean>, Nullable<Int32>, VirtualHardDisk, IList<String>, VirtualMachineScaleSetManagedDiskParameters, String)

Initializes a new instance of the VirtualMachineScaleSetUpdateOSDisk class.

public VirtualMachineScaleSetUpdateOSDisk (Microsoft.Azure.Management.Compute.Models.CachingTypes? caching = default, bool? writeAcceleratorEnabled = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Models.VirtualHardDisk image = default, System.Collections.Generic.IList<string> vhdContainers = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters managedDisk = default, string deleteOption = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetUpdateOSDisk : Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.VirtualHardDisk * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters * string -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetUpdateOSDisk
Public Sub New (Optional caching As Nullable(Of CachingTypes) = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional image As VirtualHardDisk = Nothing, Optional vhdContainers As IList(Of String) = Nothing, Optional managedDisk As VirtualMachineScaleSetManagedDiskParameters = Nothing, Optional deleteOption As String = Nothing)

Parameters

caching
Nullable<CachingTypes>

The caching type. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

writeAcceleratorEnabled
Nullable<Boolean>

Specifies whether writeAccelerator should be enabled or disabled on the disk.

diskSizeGB
Nullable<Int32>

Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023

image
VirtualHardDisk

The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.

vhdContainers
IList<String>

The list of virtual hard disk container uris.

managedDisk
VirtualMachineScaleSetManagedDiskParameters

The managed disk parameters.

deleteOption
String

Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br><br> Possible values: <br><br> Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.<br><br> Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br><br> The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the delete option for Ephemeral OS Disk. Possible values include: 'Delete', 'Detach'

Applies to