default_accounts
Creates, updates, deletes, gets or lists a default_accounts
resource.
Overview
Name | default_accounts |
Type | Resource |
Id | azure.purview.default_accounts |
Fields
Name | Datatype | Description |
---|---|---|
accountName | string | The name of the account that is set as the default. |
resourceGroupName | string | The resource group name of the account that is set as the default. |
scope | string | The scope object ID. For example, sub ID or tenant ID. |
scopeTenantId | string | The scope tenant in which the default account is set. |
scopeType | string | The scope where the default account is set. |
subscriptionId | string | The subscription ID of the account that is set as the default. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | scopeTenantId, scopeType | Get the default account for the scope. |
remove | EXEC | scopeTenantId, scopeType | Removes the default account from the scope. |
set | EXEC |
| Sets 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 }}';