Class Image
The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class Image : Microsoft.Azure.Management.Compute.Models.Resource
Constructors
Image()
Initializes a new instance of the Image class.
Declaration
public Image ();
Image(String, String, String, String, IDictionary<String,String>, SubResource, ImageStorageProfile, String, String)
Initializes a new instance of the Image class.
Declaration
public Image (string location, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, Microsoft.Azure.Management.Compute.Models.SubResource sourceVirtualMachine = null, Microsoft.Azure.Management.Compute.Models.ImageStorageProfile storageProfile = null, string provisioningState = null, string hyperVGeneration = null);
Parameters
|
String
location
Resource location |
|
String
id
Resource Id |
|
String
name
Resource name |
|
String
type
Resource type |
|
IDictionary<String,String>
tags
Resource tags |
|
SubResource
sourceVirtualMachine
The source virtual machine from which Image is created. |
|
ImageStorageProfile
storageProfile
Specifies the storage settings for the virtual machine disks. |
|
String
provisioningState
The provisioning state. |
|
String
hyperVGeneration
Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values include: 'V1', 'V2' |
Properties
HyperVGeneration
Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values include: 'V1', 'V2'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.hyperVGeneration")]
public string HyperVGeneration { get; set; }
Property Value
|
String
|
ProvisioningState
Gets the provisioning state.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningState")]
public string ProvisioningState { get; }
Property Value
|
String
|
SourceVirtualMachine
Gets or sets the source virtual machine from which Image is created.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.sourceVirtualMachine")]
public Microsoft.Azure.Management.Compute.Models.SubResource SourceVirtualMachine { get; set; }
Property Value
|
SubResource
|
StorageProfile
Gets or sets specifies the storage settings for the virtual machine disks.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.storageProfile")]
public Microsoft.Azure.Management.Compute.Models.ImageStorageProfile StorageProfile { get; set; }
Property Value
|
ImageStorageProfile
|
Methods
Validate()
Validate the object.
Declaration
public override void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |