ImageDataDisk Constructors
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.
Overloads
ImageDataDisk() |
Initializes a new instance of the ImageDataDisk class. |
ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, StorageAccountTypes, SubResource) |
Initializes a new instance of the ImageDataDisk class. |
ImageDataDisk()
Initializes a new instance of the ImageDataDisk class.
public ImageDataDisk ();
Public Sub New ()
Applies to
ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, StorageAccountTypes, SubResource)
Initializes a new instance of the ImageDataDisk class.
public ImageDataDisk (int lun, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource snapshot = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource managedDisk = default, string blobUri = default, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes? caching = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Fluent.Models.StorageAccountTypes storageAccountType = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource diskEncryptionSet = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.ImageDataDisk : int * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * string * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes> * Nullable<int> * Microsoft.Azure.Management.Compute.Fluent.Models.StorageAccountTypes * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource -> Microsoft.Azure.Management.Compute.Fluent.Models.ImageDataDisk
Public Sub New (lun As Integer, Optional snapshot As SubResource = Nothing, Optional managedDisk As SubResource = Nothing, Optional blobUri As String = Nothing, Optional caching As Nullable(Of CachingTypes) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional storageAccountType As StorageAccountTypes = Nothing, Optional diskEncryptionSet As SubResource = Nothing)
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'
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
- StorageAccountTypes
Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
- diskEncryptionSet
- SubResource
Specifies the customer managed disk encryption set resource id for the managed image disk.