Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.data_share.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
created_attextfield from the properties object
identitytextIdentity of resource
locationtextLocation of the azure resource.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextTags on the azure resource.
user_emailtextfield from the properties object
user_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet an account
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Accounts in ResourceGroup
list_by_subscriptionSELECTsubscriptionIdList Accounts in Subscription
createINSERTaccountName, resourceGroupName, subscriptionId, data__identityCreate an account
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeleteAccount
updateUPDATEaccountName, resourceGroupName, subscriptionIdPatch an account

SELECT examples

List Accounts in Subscription

SELECT
accountName,
created_at,
identity,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
user_email,
user_name
FROM azure.data_share.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.data_share.accounts (
accountName,
resourceGroupName,
subscriptionId,
data__identity,
location,
tags,
identity,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__identity }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a accounts resource.

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

DELETE example

Deletes the specified accounts resource.

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