Skip to main content

images

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

Overview

Nameimages
TypeResource
Idazure.lab_services.images

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
authortextfield from the properties object
available_regionstextfield from the properties object
display_nametextfield from the properties object
enabled_statetextfield from the properties object
icon_urltextfield from the properties object
imageNametextfield from the properties object
labPlanNametextfield from the properties object
offertextfield from the properties object
os_statetextfield from the properties object
os_typetextfield from the properties object
plantextfield from the properties object
provisioning_statetextfield from the properties object
publishertextfield from the properties object
resourceGroupNametextfield from the properties object
shared_gallery_idtextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
terms_statustextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTimageName, labPlanName, resourceGroupName, subscriptionIdGets an image resource.
list_by_lab_planSELECTlabPlanName, resourceGroupName, subscriptionIdGets all images from galleries attached to a lab plan.
create_or_updateINSERTimageName, labPlanName, resourceGroupName, subscriptionId, data__propertiesUpdates an image resource via PUT. Creating new resources via PUT will not function.
updateUPDATEimageName, labPlanName, resourceGroupName, subscriptionIdUpdates an image resource.

SELECT examples

Gets all images from galleries attached to a lab plan.

SELECT
description,
author,
available_regions,
display_name,
enabled_state,
icon_url,
imageName,
labPlanName,
offer,
os_state,
os_type,
plan,
provisioning_state,
publisher,
resourceGroupName,
shared_gallery_id,
sku,
subscriptionId,
system_data,
terms_status,
version
FROM azure.lab_services.vw_images
WHERE labPlanName = '{{ labPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new images resource.

/*+ create */
INSERT INTO azure.lab_services.images (
imageName,
labPlanName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ imageName }}',
'{{ labPlanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a images resource.

/*+ update */
UPDATE azure.lab_services.images
SET
properties = '{{ properties }}'
WHERE
imageName = '{{ imageName }}'
AND labPlanName = '{{ labPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';