ArmComputeModelFactory.VirtualMachineScaleSetUpdateOSDisk Method

Definition

public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateOSDisk VirtualMachineScaleSetUpdateOSDisk(Azure.ResourceManager.Compute.Models.CachingType? caching = default, bool? writeAcceleratorEnabled = default, Azure.ResourceManager.Compute.Models.DiffDiskSettings diffDiskSettings = default, int? diskSizeGB = default, Azure.ResourceManager.Compute.Models.ComputeStorageFaultDomainAlignmentType? storageFaultDomainAlignment = default, Uri imageUri = default, System.Collections.Generic.IEnumerable<string> vhdContainers = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetManagedDisk managedDisk = default, Azure.ResourceManager.Compute.Models.DiskDeleteOptionType? deleteOption = default);
static member VirtualMachineScaleSetUpdateOSDisk : Nullable<Azure.ResourceManager.Compute.Models.CachingType> * Nullable<bool> * Azure.ResourceManager.Compute.Models.DiffDiskSettings * Nullable<int> * Nullable<Azure.ResourceManager.Compute.Models.ComputeStorageFaultDomainAlignmentType> * Uri * seq<string> * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetManagedDisk * Nullable<Azure.ResourceManager.Compute.Models.DiskDeleteOptionType> -> Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateOSDisk
Public Shared Function VirtualMachineScaleSetUpdateOSDisk (Optional caching As Nullable(Of CachingType) = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional diffDiskSettings As DiffDiskSettings = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional storageFaultDomainAlignment As Nullable(Of ComputeStorageFaultDomainAlignmentType) = Nothing, Optional imageUri As Uri = Nothing, Optional vhdContainers As IEnumerable(Of String) = Nothing, Optional managedDisk As VirtualMachineScaleSetManagedDisk = Nothing, Optional deleteOption As Nullable(Of DiskDeleteOptionType) = Nothing) As VirtualMachineScaleSetUpdateOSDisk

Parameters

caching
Nullable<CachingType>

The caching type.

writeAcceleratorEnabled
Nullable<Boolean>

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

diffDiskSettings
DiffDiskSettings

Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.

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.

storageFaultDomainAlignment
Nullable<ComputeStorageFaultDomainAlignmentType>

Specifies the storage fault domain alignment type for the disk.

imageUri
Uri

Specifies the virtual hard disk's uri.

vhdContainers
IEnumerable<String>

The list of virtual hard disk container uris.

managedDisk
VirtualMachineScaleSetManagedDisk

The managed disk parameters.

deleteOption
Nullable<DiskDeleteOptionType>

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.

Returns

A new VirtualMachineScaleSetUpdateOSDisk instance for mocking.

Applies to