Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.engagement_fabric.accounts

Fields

NameDatatypeDescription
locationstringThe location of the resource
skuobjectThe EngagementFabric SKU
tagsobjectThe tags of the resource

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionId
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
create_or_updateINSERTaccountName, resourceGroupName, subscriptionId, data__location, data__sku
deleteDELETEaccountName, resourceGroupName, subscriptionId
updateUPDATEaccountName, resourceGroupName, subscriptionId
regenerate_keyEXECaccountName, resourceGroupName, subscriptionId, data__name, data__rank

SELECT examples

SELECT
location,
sku,
tags
FROM azure.engagement_fabric.accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.engagement_fabric.accounts (
accountName,
resourceGroupName,
subscriptionId,
data__location,
data__sku,
location,
tags,
sku
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__sku }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}'
;

UPDATE example

Updates a accounts resource.

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

DELETE example

Deletes the specified accounts resource.

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