ImageDataDisk Constructors

Definition

Overloads

ImageDataDisk()

Initializes a new instance of the ImageDataDisk class.

ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, Nullable<StorageAccountTypes>)

Initializes a new instance of the ImageDataDisk class.

ImageDataDisk()

Initializes a new instance of the ImageDataDisk class.

public ImageDataDisk ();
Public Sub New ()

Applies to

Product Introduced

ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, Nullable<StorageAccountTypes>)

Initializes a new instance of the ImageDataDisk class.

public ImageDataDisk (int lun, Microsoft.Azure.Management.Compute.Models.SubResource snapshot = null, Microsoft.Azure.Management.Compute.Models.SubResource managedDisk = null, string blobUri = null, Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> caching = null, Nullable<int> diskSizeGB = null, Nullable<Microsoft.Azure.Management.Compute.Models.StorageAccountTypes> storageAccountType = null);
new Microsoft.Azure.Management.Compute.Models.ImageDataDisk : int * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * string * Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> * Nullable<int> * Nullable<Microsoft.Azure.Management.Compute.Models.StorageAccountTypes> -> Microsoft.Azure.Management.Compute.Models.ImageDataDisk
Public Sub New (lun As Integer, Optional snapshot As SubResource = null, Optional managedDisk As SubResource = null, Optional blobUri As String = null, Optional caching As Nullable(Of CachingTypes) = null, Optional diskSizeGB As Nullable(Of Integer) = null, Optional storageAccountType As Nullable(Of StorageAccountTypes) = null)

Parameters

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.

snapshot
SubResource

The snapshot.

managedDisk
SubResource

The managedDisk.

blobUri
String

The Virtual Hard Disk.

caching
Nullable<CachingTypes>

Specifies the caching requirements. <br><br> Possible values are: <br><br> None <br><br> ReadOnly <br><br> ReadWrite <br><br> Default: None for Standard storage. ReadOnly for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

diskSizeGB
Nullable<Int32>

Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB

storageAccountType
Nullable<StorageAccountTypes>

Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'

Applies to

Product Introduced