ArmComputeModelFactory.VirtualMachineScaleSetDataDisk Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetDataDisk VirtualMachineScaleSetDataDisk(string name = default, int lun = 0, Azure.ResourceManager.Compute.Models.CachingType? caching = default, bool? writeAcceleratorEnabled = default, Azure.ResourceManager.Compute.Models.DiskCreateOptionType createOption = default, int? diskSizeGB = default, Azure.ResourceManager.Compute.Models.ComputeStorageFaultDomainAlignmentType? storageFaultDomainAlignment = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetManagedDisk managedDisk = default, long? diskIopsReadWrite = default, long? diskMBpsReadWrite = default, Azure.ResourceManager.Compute.Models.DiskDeleteOptionType? deleteOption = default);
static member VirtualMachineScaleSetDataDisk : string * int * Nullable<Azure.ResourceManager.Compute.Models.CachingType> * Nullable<bool> * Azure.ResourceManager.Compute.Models.DiskCreateOptionType * Nullable<int> * Nullable<Azure.ResourceManager.Compute.Models.ComputeStorageFaultDomainAlignmentType> * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetManagedDisk * Nullable<int64> * Nullable<int64> * Nullable<Azure.ResourceManager.Compute.Models.DiskDeleteOptionType> -> Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetDataDisk
Public Shared Function VirtualMachineScaleSetDataDisk (Optional name As String = Nothing, Optional lun As Integer = 0, Optional caching As Nullable(Of CachingType) = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional createOption As DiskCreateOptionType = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional storageFaultDomainAlignment As Nullable(Of ComputeStorageFaultDomainAlignmentType) = Nothing, Optional managedDisk As VirtualMachineScaleSetManagedDisk = Nothing, Optional diskIopsReadWrite As Nullable(Of Long) = Nothing, Optional diskMBpsReadWrite As Nullable(Of Long) = Nothing, Optional deleteOption As Nullable(Of DiskDeleteOptionType) = Nothing) As VirtualMachineScaleSetDataDisk
Parameters
- name
- String
The disk name.
- lun
- Int32
Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
- caching
- Nullable<CachingType>
Specifies the caching requirements. Possible values are: None,ReadOnly,ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage..
Specifies whether writeAccelerator should be enabled or disabled on the disk.
- createOption
- DiskCreateOptionType
The create option.
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. The property 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.
- managedDisk
- VirtualMachineScaleSetManagedDisk
The managed disk parameters.
Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
- deleteOption
- Nullable<DiskDeleteOptionType>
Specifies whether data 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 data disk is deleted when the VMSS Flex VM is deleted.<br><br> Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.<br><br> The default value is set to Delete.
Returns
A new VirtualMachineScaleSetDataDisk instance for mocking.