Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.purview.accounts

Fields

NameDatatypeDescription
idtextGets or sets the identifier.
nametextGets or sets the name.
accountNametextfield from the properties object
account_statustextfield from the properties object
cloud_connectorstextfield from the properties object
created_attextfield from the properties object
created_bytextfield from the properties object
created_by_object_idtextfield from the properties object
default_domaintextfield from the properties object
endpointstextfield from the properties object
friendly_nametextfield from the properties object
identitytextThe Managed Identity of the resource
ingestion_storagetextfield from the properties object
locationtextGets or sets the location.
managed_event_hub_statetextfield from the properties object
managed_resource_group_nametextfield from the properties object
managed_resourcestextfield from the properties object
managed_resources_public_network_accesstextfield from the properties object
merge_infotextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextGets or sets the Sku.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextTags on the azure resource.
tenant_endpoint_statetextfield from the properties object
typetextGets or sets the type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet an account
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList accounts in ResourceGroup
list_by_subscriptionSELECTsubscriptionIdList accounts in Subscription
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates or updates an account
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes an account resource
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates an account
add_root_collection_adminEXECaccountName, resourceGroupName, subscriptionIdAdd the administrator for root collection associated with this account.
check_name_availabilityEXECsubscriptionIdChecks if account name is available.

SELECT examples

List accounts in Subscription

SELECT
id,
name,
accountName,
account_status,
cloud_connectors,
created_at,
created_by,
created_by_object_id,
default_domain,
endpoints,
friendly_name,
identity,
ingestion_storage,
location,
managed_event_hub_state,
managed_resource_group_name,
managed_resources,
managed_resources_public_network_access,
merge_info,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
tenant_endpoint_state,
type
FROM azure.purview.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.purview.accounts (
accountName,
resourceGroupName,
subscriptionId,
identity,
location,
tags,
properties,
sku
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a accounts resource.

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

DELETE example

Deletes the specified accounts resource.

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