VirtualMachineImage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VirtualMachineImage()
Initializes a new instance of the VirtualMachineImage class.
public VirtualMachineImage ();
Public Sub New ()
Applies to
VirtualMachineImage(String, String, String, IDictionary<String,String>, PurchasePlan)
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan)
Parameters
- name
- String
- location
- String
- id
- String
- tags
- IDictionary<String,String>
- plan
- PurchasePlan
Applies to
VirtualMachineImage(String, String, String, IDictionary<String,String>, PurchasePlan, OSDiskImage)
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan, osDiskImage As OSDiskImage)
Parameters
- name
- String
- location
- String
- id
- String
- tags
- IDictionary<String,String>
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
Applies to
VirtualMachineImage(String, String, String, IDictionary<String,String>, PurchasePlan, OSDiskImage, IList<DataDiskImage>)
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan, osDiskImage As OSDiskImage, dataDiskImages As IList(Of DataDiskImage))
Parameters
- name
- String
- location
- String
- id
- String
- tags
- IDictionary<String,String>
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
- dataDiskImages
- IList<DataDiskImage>
Applies to
VirtualMachineImage(String, String, String, IDictionary<String, String>, PurchasePlan, OSDiskImage, IList<DataDiskImage>, AutomaticOSUpgradeProperties)
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties automaticOSUpgradeProperties);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> * Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan, osDiskImage As OSDiskImage, dataDiskImages As IList(Of DataDiskImage), automaticOSUpgradeProperties As AutomaticOSUpgradeProperties)
Parameters
- name
- String
- location
- String
- id
- String
- tags
- IDictionary<String,String>
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
- dataDiskImages
- IList<DataDiskImage>
- automaticOSUpgradeProperties
- AutomaticOSUpgradeProperties
Applies to
VirtualMachineImage(String, String, String, IDictionary<String, String>, PurchasePlan, OSDiskImage, IList<DataDiskImage>, AutomaticOSUpgradeProperties, String)
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties automaticOSUpgradeProperties, string hyperVGeneration);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> * Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties * string -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan, osDiskImage As OSDiskImage, dataDiskImages As IList(Of DataDiskImage), automaticOSUpgradeProperties As AutomaticOSUpgradeProperties, hyperVGeneration As String)
Parameters
- name
- String
- location
- String
- id
- String
- tags
- IDictionary<String,String>
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
- dataDiskImages
- IList<DataDiskImage>
- automaticOSUpgradeProperties
- AutomaticOSUpgradeProperties
- hyperVGeneration
- String
Applies to
VirtualMachineImage(String, String, String, IDictionary<String, String>, PurchasePlan, OSDiskImage, IList<DataDiskImage>, AutomaticOSUpgradeProperties, String, DisallowedConfiguration)
Initializes a new instance of the VirtualMachineImage class.
public VirtualMachineImage (string name, string location, string id, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties automaticOSUpgradeProperties, string hyperVGeneration, Microsoft.Azure.Management.Compute.Models.DisallowedConfiguration disallowed);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> * Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties * string * Microsoft.Azure.Management.Compute.Models.DisallowedConfiguration -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, id As String, tags As IDictionary(Of String, String), plan As PurchasePlan, osDiskImage As OSDiskImage, dataDiskImages As IList(Of DataDiskImage), automaticOSUpgradeProperties As AutomaticOSUpgradeProperties, hyperVGeneration As String, disallowed As DisallowedConfiguration)
Parameters
- name
- String
The name of the resource.
- location
- String
The supported Azure location of the resource.
- id
- String
Resource Id
- tags
- IDictionary<String,String>
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
- dataDiskImages
- IList<DataDiskImage>
- automaticOSUpgradeProperties
- AutomaticOSUpgradeProperties
- hyperVGeneration
- String
Possible values include: 'V1', 'V2'
- disallowed
- DisallowedConfiguration
Specifies disallowed configuration for the VirtualMachine created from the image
Applies to
VirtualMachineImage(String, String, String, IDictionary<String, String>, ExtendedLocation, PurchasePlan, OSDiskImage, IList<DataDiskImage>, AutomaticOSUpgradeProperties, String, DisallowedConfiguration, IList<VirtualMachineImageFeature>, String, ImageDeprecationStatus)
Initializes a new instance of the VirtualMachineImage class.
public VirtualMachineImage (string name, string location, string id = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.Compute.Models.PurchasePlan plan = default, Microsoft.Azure.Management.Compute.Models.OSDiskImage osDiskImage = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> dataDiskImages = default, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties automaticOSUpgradeProperties = default, string hyperVGeneration = default, Microsoft.Azure.Management.Compute.Models.DisallowedConfiguration disallowed = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageFeature> features = default, string architecture = default, Microsoft.Azure.Management.Compute.Models.ImageDeprecationStatus imageDeprecationStatus = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineImage : string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.OSDiskImage * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDiskImage> * Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties * string * Microsoft.Azure.Management.Compute.Models.DisallowedConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageFeature> * string * Microsoft.Azure.Management.Compute.Models.ImageDeprecationStatus -> Microsoft.Azure.Management.Compute.Models.VirtualMachineImage
Public Sub New (name As String, location As String, Optional id As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional plan As PurchasePlan = Nothing, Optional osDiskImage As OSDiskImage = Nothing, Optional dataDiskImages As IList(Of DataDiskImage) = Nothing, Optional automaticOSUpgradeProperties As AutomaticOSUpgradeProperties = Nothing, Optional hyperVGeneration As String = Nothing, Optional disallowed As DisallowedConfiguration = Nothing, Optional features As IList(Of VirtualMachineImageFeature) = Nothing, Optional architecture As String = Nothing, Optional imageDeprecationStatus As ImageDeprecationStatus = Nothing)
Parameters
- name
- String
The name of the resource.
- location
- String
The supported Azure location of the resource.
- id
- String
Resource Id
- tags
- IDictionary<String,String>
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
- extendedLocation
- ExtendedLocation
The extended location of the Virtual Machine.
- plan
- PurchasePlan
- osDiskImage
- OSDiskImage
- dataDiskImages
- IList<DataDiskImage>
- automaticOSUpgradeProperties
- AutomaticOSUpgradeProperties
- hyperVGeneration
- String
Possible values include: 'V1', 'V2'
- disallowed
- DisallowedConfiguration
Specifies disallowed configuration for the VirtualMachine created from the image
- features
- IList<VirtualMachineImageFeature>
- architecture
- String
Possible values include: 'x64', 'Arm64'
- imageDeprecationStatus
- ImageDeprecationStatus
Applies to
Azure SDK for .NET