Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.test_base.accounts

Fields

NameDatatypeDescription
access_leveltextfield from the properties object
identitytextManaged service identity (either system assigned, or none)
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
testBaseAccountNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, testBaseAccountNameGets a Test Base Account.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the Test Base Accounts in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all the Test Base Accounts in a subscription.
createINSERTresourceGroupName, subscriptionId, testBaseAccountNameCreate or replace (overwrite/recreate, with potential downtime) a Test Base Account in the specified subscription.
deleteDELETEresourceGroupName, subscriptionId, testBaseAccountNameDeletes a Test Base Account.
updateUPDATEresourceGroupName, subscriptionId, testBaseAccountNameUpdate an existing Test Base Account.
check_package_name_availabilityEXECresourceGroupName, subscriptionId, testBaseAccountName, data__applicationName, data__name, data__versionChecks that the Test Base Package name and version is valid and is not already in use.
offboardEXECresourceGroupName, subscriptionId, testBaseAccountNameOffboard a Test Base Account.

SELECT examples

Lists all the Test Base Accounts in a subscription.

SELECT
access_level,
identity,
location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
testBaseAccountName
FROM azure_extras.test_base.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a accounts resource.

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

DELETE example

Deletes the specified accounts resource.

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