ArmComputeFleetModelFactory.ComputeFleetVmssDataDisk 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.ComputeFleet.Models.ComputeFleetVmssDataDisk ComputeFleetVmssDataDisk(string name = default, int lun = 0, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetCachingType? caching = default, bool? isWriteAcceleratorEnabled = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetDiskCreateOptionType createOption = default, int? diskSizeGB = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssManagedDisk managedDisk = default, long? diskIopsReadWrite = default, long? diskMbpsReadWrite = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetDiskDeleteOptionType? deleteOption = default);
static member ComputeFleetVmssDataDisk : string * int * Nullable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetCachingType> * Nullable<bool> * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetDiskCreateOptionType * Nullable<int> * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssManagedDisk * Nullable<int64> * Nullable<int64> * Nullable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetDiskDeleteOptionType> -> Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssDataDisk
Public Shared Function ComputeFleetVmssDataDisk (Optional name As String = Nothing, Optional lun As Integer = 0, Optional caching As Nullable(Of ComputeFleetCachingType) = Nothing, Optional isWriteAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional createOption As ComputeFleetDiskCreateOptionType = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional managedDisk As ComputeFleetVmssManagedDisk = Nothing, Optional diskIopsReadWrite As Nullable(Of Long) = Nothing, Optional diskMbpsReadWrite As Nullable(Of Long) = Nothing, Optional deleteOption As Nullable(Of ComputeFleetDiskDeleteOptionType) = Nothing) As ComputeFleetVmssDataDisk
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<ComputeFleetCachingType>
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
- ComputeFleetDiskCreateOptionType
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.
- managedDisk
- ComputeFleetVmssManagedDisk
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<ComputeFleetDiskDeleteOptionType>
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 ComputeFleetVmssDataDisk instance for mocking.