VirtualMachineDataDisk(Int32, DiskCreateOptionType) 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 VirtualMachineDataDisk.
public VirtualMachineDataDisk (int lun, Azure.ResourceManager.Compute.Models.DiskCreateOptionType createOption);
new Azure.ResourceManager.Compute.Models.VirtualMachineDataDisk : int * Azure.ResourceManager.Compute.Models.DiskCreateOptionType -> Azure.ResourceManager.Compute.Models.VirtualMachineDataDisk
Public Sub New (lun As Integer, createOption As DiskCreateOptionType)
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
- DiskCreateOptionType
Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when you are using a specialized disk to create the virtual machine. FromImage: This value is used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. Empty: This value is used when creating an empty data disk. Copy: This value is used to create a data disk from a snapshot or another disk. Restore: This value is used to create a data disk from a disk restore point.
Applies to
Azure SDK for .NET
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de