ArmComputeModelFactory.VirtualMachineImage Method

Definition

public static Azure.ResourceManager.Compute.Models.VirtualMachineImage VirtualMachineImage(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ResourceManager.Compute.Models.PurchasePlan plan = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.DataDiskImage> dataDiskImages = default, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.VirtualMachineImageFeature> features = default, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default, Azure.ResourceManager.Compute.Models.ImageDeprecationStatus imageDeprecationStatus = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osDiskImageOperatingSystem = default, bool? automaticOSUpgradeSupported = default, Azure.ResourceManager.Compute.Models.VirtualMachineDiskType? disallowedVmDiskType = default);
static member VirtualMachineImage : Azure.Core.ResourceIdentifier * string * Azure.Core.AzureLocation * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * Azure.ResourceManager.Compute.Models.PurchasePlan * seq<Azure.ResourceManager.Compute.Models.DataDiskImage> * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> * seq<Azure.ResourceManager.Compute.Models.VirtualMachineImageFeature> * Nullable<Azure.ResourceManager.Compute.Models.ArchitectureType> * Azure.ResourceManager.Compute.Models.ImageDeprecationStatus * Nullable<Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType> * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.VirtualMachineDiskType> -> Azure.ResourceManager.Compute.Models.VirtualMachineImage
Public Shared Function VirtualMachineImage (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional location As AzureLocation = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional plan As PurchasePlan = Nothing, Optional dataDiskImages As IEnumerable(Of DataDiskImage) = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing, Optional features As IEnumerable(Of VirtualMachineImageFeature) = Nothing, Optional architecture As Nullable(Of ArchitectureType) = Nothing, Optional imageDeprecationStatus As ImageDeprecationStatus = Nothing, Optional osDiskImageOperatingSystem As Nullable(Of SupportedOperatingSystemType) = Nothing, Optional automaticOSUpgradeSupported As Nullable(Of Boolean) = Nothing, Optional disallowedVmDiskType As Nullable(Of VirtualMachineDiskType) = Nothing) As VirtualMachineImage

Parameters

id
ResourceIdentifier

Resource Id.

name
String

The name of the resource.

location
AzureLocation

The supported Azure location of the resource.

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

Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

dataDiskImages
IEnumerable<DataDiskImage>

The list of data disk images information.

hyperVGeneration
Nullable<HyperVGeneration>

Specifies the HyperVGeneration Type.

features
IEnumerable<VirtualMachineImageFeature>

Gets the Features.

architecture
Nullable<ArchitectureType>

Specifies the Architecture Type.

imageDeprecationStatus
ImageDeprecationStatus

Describes image deprecation status properties on the image.

osDiskImageOperatingSystem
Nullable<SupportedOperatingSystemType>

The operating system of the osDiskImage.

automaticOSUpgradeSupported
Nullable<Boolean>

Specifies whether automatic OS upgrade is supported on the image.

disallowedVmDiskType
Nullable<VirtualMachineDiskType>

VM disk types which are disallowed.

Returns

A new VirtualMachineImage instance for mocking.

Applies to