Skip to main content

packages

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

Overview

Namepackages
TypeResource
Idazure_extras.test_base.packages

Fields

NameDatatypeDescription
application_nametextfield from the properties object
blob_pathtextfield from the properties object
draft_package_idtextfield from the properties object
first_party_appstextfield from the properties object
flighting_ringtextfield from the properties object
gallery_appstextfield from the properties object
inplace_upgrade_os_pairtextfield from the properties object
intune_enrollment_metadatatextfield from the properties object
is_enabledtextfield from the properties object
last_modified_timetextfield from the properties object
locationtextThe geo-location where the resource lives
packageNametextfield from the properties object
package_statustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
target_os_listtextfield from the properties object
testBaseAccountNametextfield from the properties object
test_typestextfield from the properties object
teststextfield from the properties object
validation_resultstextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpackageName, resourceGroupName, subscriptionId, testBaseAccountNameGets a Test Base Package.
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameLists all the packages under a Test Base Account.
createINSERTpackageName, resourceGroupName, subscriptionId, testBaseAccountNameCreate or replace (overwrite/recreate, with potential downtime) a Test Base Package.
deleteDELETEpackageName, resourceGroupName, subscriptionId, testBaseAccountNameDeletes a Test Base Package.
updateUPDATEpackageName, resourceGroupName, subscriptionId, testBaseAccountNameUpdate an existing Test Base Package.
hard_deleteEXECpackageName, resourceGroupName, subscriptionId, testBaseAccountNameHard Delete a Test Base Package.
run_testEXECpackageName, resourceGroupName, subscriptionId, testBaseAccountNameTrigger a test run on the package.

SELECT examples

Lists all the packages under a Test Base Account.

SELECT
application_name,
blob_path,
draft_package_id,
first_party_apps,
flighting_ring,
gallery_apps,
inplace_upgrade_os_pair,
intune_enrollment_metadata,
is_enabled,
last_modified_time,
location,
packageName,
package_status,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
target_os_list,
testBaseAccountName,
test_types,
tests,
validation_results,
version
FROM azure_extras.test_base.vw_packages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.test_base.packages (
packageName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties,
tags,
location
)
SELECT
'{{ packageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a packages resource.

/*+ update */
UPDATE azure_extras.test_base.packages
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
packageName = '{{ packageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

DELETE example

Deletes the specified packages resource.

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