Skip to main content

custom_images

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

Overview

Namecustom_images
TypeResource
Idazure_extras.test_base.custom_images

Fields

NameDatatypeDescription
creation_timetextfield from the properties object
customImageNametextfield from the properties object
definition_nametextfield from the properties object
os_disk_image_size_in_gbtextfield from the properties object
producttextfield from the properties object
provisioning_statetextfield from the properties object
releasetextfield from the properties object
release_version_datetextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
testBaseAccountNametextfield from the properties object
validation_resultstextfield from the properties object
version_nametextfield from the properties object
vhd_file_nametextfield from the properties object
vhd_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomImageName, resourceGroupName, subscriptionId, testBaseAccountNameGets a test base custom image.
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameLists all the custom images under a test base account.
createINSERTcustomImageName, resourceGroupName, subscriptionId, testBaseAccountNameCreates a test base custom image.
deleteDELETEcustomImageName, resourceGroupName, subscriptionId, testBaseAccountNameDeletes a test base custom image.
check_image_name_availabilityEXECresourceGroupName, subscriptionId, testBaseAccountName, data__definitionName, data__versionNameChecks that the test vase custom image generated from VHD resource has valid and unique definition and version, return architecture and OS state of potential existing image definition.

SELECT examples

Lists all the custom images under a test base account.

SELECT
creation_time,
customImageName,
definition_name,
os_disk_image_size_in_gb,
product,
provisioning_state,
release,
release_version_date,
resourceGroupName,
source,
status,
subscriptionId,
testBaseAccountName,
validation_results,
version_name,
vhd_file_name,
vhd_id
FROM azure_extras.test_base.vw_custom_images
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.test_base.custom_images (
customImageName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ customImageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified custom_images resource.

/*+ delete */
DELETE FROM azure_extras.test_base.custom_images
WHERE customImageName = '{{ customImageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';