Skip to main content

virtual_machine_images

Creates, updates, deletes, gets or lists a virtual_machine_images resource.

Overview

Namevirtual_machine_images
TypeResource
Idazure.compute.virtual_machine_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringThe name of the resource. Required.
architecturestringSpecifies the Architecture Type. Known values are: "x64" and "Arm64". (x64, Arm64)
automaticOSUpgradePropertiesobjectDescribes automatic OS upgrade properties on the image.
dataDiskImagesarrayThe list of data disk images information.
disallowedobjectSpecifies disallowed configuration for the VirtualMachine created from the image.
extendedLocationobjectThe extended location of the Virtual Machine.
featuresarray:vartype features: list[~azure.mgmt.compute.models.VirtualMachineImageFeature]
hyperVGenerationstringSpecifies the HyperVGeneration Type. Known values are: "V1" and "V2". (V1, V2)
imageDeprecationStatusobjectDescribes image deprecation status properties on the image.
locationstringThe supported Azure location of the resource. Required.
osDiskImageobjectContains the os disk image information.
planobjectUsed for establishing the purchase context of any 3rd Party artifact through MarketPlace.
tagsobjectSpecifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources _.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, publisher_name, offer, skus, version, subscription_idGets a virtual machine image.
list_with_propertiesselectlocation, publisher_name, offer, skus, subscription_id, $expand$top, $orderbylist_with_properties.
listselectlocation, publisher_name, offer, skus, subscription_id$expand, $top, $orderbyGets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
list_skusselectlocation, publisher_name, offer, subscription_idGets a list of virtual machine image SKUs for the specified location, publisher, and offer.
list_by_edge_zoneselectlocation, edge_zone, subscription_idGets a list of all virtual machine image versions for the specified edge zone.
list_offersselectlocation, publisher_name, subscription_idGets a list of virtual machine image offers for the specified location and publisher.
list_publishersselectlocation, subscription_idGets a list of virtual machine image publishers for the specified Azure location.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
$expandstringThe expand expression to apply on the operation. Required.
edge_zonestringThe name of the edge zone. Required.
locationstringThe location name. Required.
offerstringA valid image publisher offer. Required.
publisher_namestringA valid image publisher. Required.
skusstringA valid image SKU. Required.
subscription_idstring
versionstringA valid image SKU version. Required.
$expandstringThe expand expression to apply on the operation. Default value is None.
$orderbystringDefault value is None.
$topintegerDefault value is None.

SELECT examples

Gets a virtual machine image.

SELECT
id,
name,
architecture,
automaticOSUpgradeProperties,
dataDiskImages,
disallowed,
extendedLocation,
features,
hyperVGeneration,
imageDeprecationStatus,
location,
osDiskImage,
plan,
tags
FROM azure.compute.virtual_machine_images
WHERE location = '{{ location }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND offer = '{{ offer }}' -- required
AND skus = '{{ skus }}' -- required
AND version = '{{ version }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;