Class StorageProfile
Specifies the storage settings for the virtual machine disks.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
public class StorageProfile
Constructors
StorageProfile()
Initializes a new instance of the StorageProfile class.
Declaration
public StorageProfile ();
StorageProfile(ImageReference, OSDisk, IList<DataDisk>)
Initializes a new instance of the StorageProfile class.
Declaration
public StorageProfile (Microsoft.Azure.Management.Compute.Models.ImageReference imageReference = null, Microsoft.Azure.Management.Compute.Models.OSDisk osDisk = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> dataDisks = null);
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. <br><br> For more information about disks, see About disks and VHDs for Azure virtual machines. |
|
IList<DataDisk>
dataDisks
Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see About disks and VHDs for Azure virtual machines. |
Properties
DataDisks
Gets or sets specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see About disks and VHDs for Azure virtual machines.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="dataDisks")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> DataDisks { get; set; }
Property Value
|
IList<DataDisk>
|
ImageReference
Gets or sets 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.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="imageReference")]
public Microsoft.Azure.Management.Compute.Models.ImageReference ImageReference { get; set; }
Property Value
|
ImageReference
|
OsDisk
Gets or sets specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see About disks and VHDs for Azure virtual machines.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="osDisk")]
public Microsoft.Azure.Management.Compute.Models.OSDisk OsDisk { get; set; }
Property Value
|
OSDisk
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |