다음을 통해 공유


Image Class

Definition

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.

[Microsoft.Rest.Serialization.JsonTransformation]
public class Image : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type Image = class
    inherit Resource
Public Class Image
Inherits Resource
Inheritance
Attributes

Constructors

Image()

Initializes a new instance of the Image class.

Image(String, String, String, String, IDictionary<String,String>, SubResource, ImageStorageProfile, String, String, ExtendedLocation)

Initializes a new instance of the Image class.

Properties

ExtendedLocation

Gets or sets the extended location of the Image.

HyperVGeneration

Gets or sets specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. Possible values include: 'V1', 'V2'

Id

Gets resource Id

(Inherited from Resource)
Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets resource name

(Inherited from Resource)
ProvisioningState

Gets the provisioning state.

SourceVirtualMachine

Gets or sets the source virtual machine from which Image is created.

StorageProfile

Gets or sets specifies the storage settings for the virtual machine disks.

Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to