Skip to main content

os_images

Creates, updates, deletes, gets or lists an os_images resource.

Overview

Nameos_images
TypeResource
Idazure_stack.azure_stack_hci.os_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
composedImageIsoHashstringRepresents composed image iso hash of a os image.
composedImageIsoUrlstringRepresents composed image iso download url of a os image.
composedImageVersionstringRepresents composed image version of a os image.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
validatedSolutionRecipeVersionstringRepresents validated solution recipe version of a os image.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, os_image_name, subscription_idGet a os image.
list_by_subscription_location_resourceselectlocation, subscription_idList all os images.

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
locationstringThe name of the Azure region. Required.
os_image_namestringThe name of the OsImage. Required.
subscription_idstring

SELECT examples

Get a os image.

SELECT
id,
name,
composedImageIsoHash,
composedImageIsoUrl,
composedImageVersion,
systemData,
type,
validatedSolutionRecipeVersion
FROM azure_stack.azure_stack_hci.os_images
WHERE location = '{{ location }}' -- required
AND os_image_name = '{{ os_image_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;