다음을 통해 공유


Image Constructors

Definition

Overloads

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.

Image()

Initializes a new instance of the Image class.

public Image ();
Public Sub New ()

Applies to

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

Initializes a new instance of the Image class.

public Image (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Models.SubResource sourceVirtualMachine = default, Microsoft.Azure.Management.Compute.Models.ImageStorageProfile storageProfile = default, string provisioningState = default, string hyperVGeneration = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.Compute.Models.Image : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.ImageStorageProfile * string * string * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.Image
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sourceVirtualMachine As SubResource = Nothing, Optional storageProfile As ImageStorageProfile = Nothing, Optional provisioningState As String = Nothing, Optional hyperVGeneration As String = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sourceVirtualMachine
SubResource

The source virtual machine from which Image is created.

storageProfile
ImageStorageProfile

Specifies the storage settings for the virtual machine disks.

provisioningState
String

The provisioning state.

hyperVGeneration
String

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'

extendedLocation
ExtendedLocation

The extended location of the Image.

Applies to