DataDisk(Int32, DiskCreateOptionTypes) Constructor
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.
Initializes a new instance of DataDisk.
public DataDisk(int lun, Azure.ResourceManager.Compute.BulkActions.Models.DiskCreateOptionTypes createOption);
new Azure.ResourceManager.Compute.BulkActions.Models.DataDisk : int * Azure.ResourceManager.Compute.BulkActions.Models.DiskCreateOptionTypes -> Azure.ResourceManager.Compute.BulkActions.Models.DataDisk
Public Sub New (lun As Integer, createOption As DiskCreateOptionTypes)
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.
- createOption
- DiskCreateOptionTypes
Specifies how the virtual machine disk should be created. Possible values are Attach, FromImage, Empty, Copy, Restore.