Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.power_platform.accounts

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet information about an account.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve a list of accounts within a given resource group.
list_by_subscriptionSELECTsubscriptionIdRetrieve a list of accounts within a subscription.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates an account.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete an account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates an account.

SELECT examples

Retrieve a list of accounts within a subscription.

SELECT
description,
accountName,
location,
resourceGroupName,
subscriptionId,
system_data,
system_id,
tags
FROM azure_extras.power_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_extras.power_platform.accounts (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
systemData
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_extras.power_platform.accounts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
systemData = '{{ systemData }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

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