Share via


VirtualMachineOSDisk(DiskCreateOptionType) Constructor

Definition

Initializes a new instance of VirtualMachineOSDisk.

public VirtualMachineOSDisk (Azure.ResourceManager.Compute.Models.DiskCreateOptionType createOption);
new Azure.ResourceManager.Compute.Models.VirtualMachineOSDisk : Azure.ResourceManager.Compute.Models.DiskCreateOptionType -> Azure.ResourceManager.Compute.Models.VirtualMachineOSDisk
Public Sub New (createOption As DiskCreateOptionType)

Parameters

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. 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.

Applies to