Skip to main content

image_definitions

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

Overview

Nameimage_definitions
TypeResource
Idazure_extras.test_base.image_definitions

Fields

NameDatatypeDescription
architecturetextfield from the properties object
imageDefinitionNametextfield from the properties object
os_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
security_typetextfield from the properties object
subscriptionIdtextfield from the properties object
testBaseAccountNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTimageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountNameGet image properties under the image definition name created by test base custom image which derived from 'VHD' source.
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameList all image definition properties created by test base custom images which are derived from 'VHD' source.
createINSERTimageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountNameCreate image definition for test base custom images which are derived from 'VHD' source.
deleteDELETEimageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountNameDelete a test base image definition resource.

SELECT examples

List all image definition properties created by test base custom images which are derived from 'VHD' source.

SELECT
architecture,
imageDefinitionName,
os_state,
provisioning_state,
resourceGroupName,
security_type,
subscriptionId,
testBaseAccountName
FROM azure_extras.test_base.vw_image_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

INSERT example

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

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

DELETE example

Deletes the specified image_definitions resource.

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