Skip to main content

draft_packages

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

Overview

Namedraft_packages
TypeResource
Idazure_extras.test_base.draft_packages

Fields

NameDatatypeDescription
app_file_nametextfield from the properties object
application_nametextfield from the properties object
commentstextfield from the properties object
draftPackageNametextfield from the properties object
draft_package_pathtextfield from the properties object
edit_packagetextfield from the properties object
executable_launch_commandtextfield from the properties object
first_party_appstextfield from the properties object
flighting_ringtextfield from the properties object
gallery_appstextfield from the properties object
highlighted_filestextfield from the properties object
inplace_upgrade_os_pairtextfield from the properties object
intune_enrollment_metadatatextfield from the properties object
intune_metadatatextfield from the properties object
last_modified_timetextfield from the properties object
package_idtextfield from the properties object
package_tagstextfield from the properties object
process_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_typetextfield from the properties object
subscriptionIdtextfield from the properties object
tab_statetextfield from the properties object
target_os_listtextfield from the properties object
testBaseAccountNametextfield from the properties object
test_typestextfield from the properties object
teststextfield from the properties object
use_autofilltextfield from the properties object
use_sampletextfield from the properties object
versiontextfield from the properties object
working_pathtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountNameGets a Test Base Draft Package.
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameLists all the draft packages under a test base account.
createINSERTdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountNameCreates or replaces a Test Base Draft Package.
deleteDELETEdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountNameDeletes a Test Base Draft Package.
updateUPDATEdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountNameUpdates an existing Test Base Draft Package.
copy_from_packageEXECdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountName, data__packageIdCopy package file and metadata from a package to this draft package
extract_fileEXECdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountName, data__sourceFilePerforms extracting file operation for a Test Base Draft Package
generate_folders_and_scriptsEXECdraftPackageName, resourceGroupName, subscriptionId, testBaseAccountNameGenerates folders and scripts

SELECT examples

Lists all the draft packages under a test base account.

SELECT
app_file_name,
application_name,
comments,
draftPackageName,
draft_package_path,
edit_package,
executable_launch_command,
first_party_apps,
flighting_ring,
gallery_apps,
highlighted_files,
inplace_upgrade_os_pair,
intune_enrollment_metadata,
intune_metadata,
last_modified_time,
package_id,
package_tags,
process_name,
provisioning_state,
resourceGroupName,
source_type,
subscriptionId,
tab_state,
target_os_list,
testBaseAccountName,
test_types,
tests,
use_autofill,
use_sample,
version,
working_path
FROM azure_extras.test_base.vw_draft_packages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

INSERT example

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

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

UPDATE example

Updates a draft_packages resource.

/*+ update */
UPDATE azure_extras.test_base.draft_packages
SET
properties = '{{ properties }}'
WHERE
draftPackageName = '{{ draftPackageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';

DELETE example

Deletes the specified draft_packages resource.

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