Class ImageOSDisk
Describes an Operating System disk.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
public class ImageOSDisk
Constructors
ImageOSDisk()
Initializes a new instance of the ImageOSDisk class.
Declaration
public ImageOSDisk ();
ImageOSDisk(OperatingSystemTypes, OperatingSystemStateTypes, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String)
Initializes a new instance of the ImageOSDisk class.
Declaration
public ImageOSDisk (Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes osType, Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes osState, Microsoft.Azure.Management.Compute.Models.SubResource snapshot = null, Microsoft.Azure.Management.Compute.Models.SubResource managedDisk = null, string blobUri = null, Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> caching = null, Nullable<int> diskSizeGB = null, string storageAccountType = null);
Parameters
|
OperatingSystemTypes
osType
This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> Windows <br><br> Linux. Possible values include: 'Windows', 'Linux' |
|
OperatingSystemStateTypes
osState
The OS State. Possible values include: 'Generalized', 'Specialized' |
|
SubResource
snapshot
The snapshot. |
|
SubResource
managedDisk
The managedDisk. |
|
String
blobUri
The Virtual Hard Disk. |
|
Nullable<CachingTypes>
caching
Specifies the caching requirements. <br><br> Possible values are: <br><br> None <br><br> ReadOnly <br><br> ReadWrite <br><br> Default: None for Standard storage. ReadOnly for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite' |
|
Nullable<Int32>
diskSizeGB
Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB |
|
String
storageAccountType
Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS' |
Properties
BlobUri
Gets or sets the Virtual Hard Disk.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="blobUri")]
public string BlobUri { get; set; }
Property Value
|
String
|
Caching
Gets or sets specifies the caching requirements. <br><br> Possible values are: <br><br> None <br><br> ReadOnly <br><br> ReadWrite <br><br> Default: None for Standard storage. ReadOnly for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="caching")]
public Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> Caching { get; set; }
Property Value
|
Nullable<CachingTypes>
|
DiskSizeGB
Gets or sets specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="diskSizeGB")]
public Nullable<int> DiskSizeGB { get; set; }
Property Value
|
Nullable<Int32>
|
ManagedDisk
Gets or sets the managedDisk.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="managedDisk")]
public Microsoft.Azure.Management.Compute.Models.SubResource ManagedDisk { get; set; }
Property Value
|
SubResource
|
OsState
Gets or sets the OS State. Possible values include: 'Generalized', 'Specialized'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="osState")]
public Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes OsState { get; set; }
Property Value
|
OperatingSystemStateTypes
|
OsType
Gets or sets this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> Windows <br><br> Linux. Possible values include: 'Windows', 'Linux'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="osType")]
public Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes OsType { get; set; }
Property Value
|
OperatingSystemTypes
|
Snapshot
Gets or sets the snapshot.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="snapshot")]
public Microsoft.Azure.Management.Compute.Models.SubResource Snapshot { get; set; }
Property Value
|
SubResource
|
StorageAccountType
Gets or sets specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="storageAccountType")]
public string StorageAccountType { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |