Delen via


StorageProfile Constructors

Definition

Overloads

StorageProfile()

Initializes a new instance of the StorageProfile class.

StorageProfile(ImageReference, OSDisk, IList<DataDisk>, String)

Initializes a new instance of the StorageProfile class.

StorageProfile()

Initializes a new instance of the StorageProfile class.

public StorageProfile ();
Public Sub New ()

Applies to

StorageProfile(ImageReference, OSDisk, IList<DataDisk>, String)

Initializes a new instance of the StorageProfile class.

public StorageProfile (Microsoft.Azure.Management.Compute.Models.ImageReference imageReference = default, Microsoft.Azure.Management.Compute.Models.OSDisk osDisk = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> dataDisks = default, string diskControllerType = default);
new Microsoft.Azure.Management.Compute.Models.StorageProfile : Microsoft.Azure.Management.Compute.Models.ImageReference * Microsoft.Azure.Management.Compute.Models.OSDisk * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> * string -> Microsoft.Azure.Management.Compute.Models.StorageProfile
Public Sub New (Optional imageReference As ImageReference = Nothing, Optional osDisk As OSDisk = Nothing, Optional dataDisks As IList(Of DataDisk) = Nothing, Optional diskControllerType As String = Nothing)

Parameters

imageReference
ImageReference

Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.

osDisk
OSDisk

Specifies information about the operating system disk used by the virtual machine. For more information about disks, see About disks and VHDs for Azure virtual machines.

dataDisks
IList<DataDisk>

Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see About disks and VHDs for Azure virtual machines.

diskControllerType
String

Specifies the disk controller type configured for the VM. Note: This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. Possible values include: 'SCSI', 'NVMe'

Applies to