Skip to main content

default_accounts

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

Overview

Namedefault_accounts
TypeResource
Idazure.purview.default_accounts

Fields

NameDatatypeDescription
accountNamestringThe name of the account that is set as the default.
resourceGroupNamestringThe resource group name of the account that is set as the default.
scopestringThe scope object ID. For example, sub ID or tenant ID.
scopeTenantIdstringThe scope tenant in which the default account is set.
scopeTypestringThe scope where the default account is set.
subscriptionIdstringThe subscription ID of the account that is set as the default.

Methods

NameAccessible byRequired ParamsDescription
getSELECTscopeTenantId, scopeTypeGet the default account for the scope.
removeEXECscopeTenantId, scopeTypeRemoves the default account from the scope.
setEXECSets the default account for the scope.

SELECT examples

Get the default account for the scope.

SELECT
accountName,
resourceGroupName,
scope,
scopeTenantId,
scopeType,
subscriptionId
FROM azure.purview.default_accounts
WHERE scopeTenantId = '{{ scopeTenantId }}'
AND scopeType = '{{ scopeType }}';