Class VirtualMachineImage
Describes a Virtual Machine Image.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class VirtualMachineImage : Microsoft.Azure.Management.Compute.Models.VirtualMachineImageResource
Constructors
VirtualMachineImage()
Initializes a new instance of the VirtualMachineImage class.
Declaration
public VirtualMachineImage ();
VirtualMachineImage(String, String, String, IDictionary<String,String>, PurchasePlan, OSDiskImage, IList<DataDiskImage>, AutomaticOSUpgradeProperties, String)
Initializes a new instance of the VirtualMachineImage class.
Declaration
public VirtualMachineImage (string name, string location, string id = null, System.Collections.Generic.IDictionary<string,string> tags = null, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan = null, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages = null, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties automaticOSUpgradeProperties = null, string hyperVGeneration = null);
Parameters
|
String
name
The name of the resource. |
|
String
location
The supported Azure location of the resource. |
|
String
id
Resource Id |
|
IDictionary<String,String>
tags
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources. |
|
PurchasePlan
plan
|
|
OSDiskImage
osDiskImage
|
|
IList<DataDiskImage>
dataDiskImages
|
|
AutomaticOSUpgradeProperties
automaticOSUpgradeProperties
|
|
String
hyperVGeneration
Possible values include: 'V1', 'V2' |
Properties
AutomaticOSUpgradeProperties
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.automaticOSUpgradeProperties")]
public Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties AutomaticOSUpgradeProperties { get; set; }
Property Value
|
AutomaticOSUpgradeProperties
|
DataDiskImages
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.dataDiskImages")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> DataDiskImages { get; set; }
Property Value
|
IList<DataDiskImage>
|
HyperVGeneration
Gets or sets possible values include: 'V1', 'V2'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.hyperVGeneration")]
public string HyperVGeneration { get; set; }
Property Value
|
String
|
OsDiskImage
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.osDiskImage")]
public Microsoft.Azure.Management.Compute.Models.OSDiskImage OsDiskImage { get; set; }
Property Value
|
OSDiskImage
|
Plan
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.plan")]
public Microsoft.Azure.Management.Compute.Models.PurchasePlan Plan { get; set; }
Property Value
|
PurchasePlan
|
Methods
Validate()
Validate the object.
Declaration
public override void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |