Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.autonomous_dev_platform.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
account_idtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGets the properties of an ADP account
listSELECTsubscriptionIdList all ADP accounts available under the subscription
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all ADP accounts available under the resource group
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates or updates an ADP account
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes an ADP account
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates the properties of an existing ADP account
check_name_availabilityEXECsubscriptionId, data__name, data__typeChecks that the account name is valid and is not already in use

SELECT examples

List all ADP accounts available under the subscription

SELECT
accountName,
account_id,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.autonomous_dev_platform.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.autonomous_dev_platform.accounts (
accountName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.autonomous_dev_platform.accounts
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure.autonomous_dev_platform.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';