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

The following fields are returned by SELECT queries:

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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscopeTenantId, scopeTypescope, api-versionGet the default account for the scope.
removeexecscopeTenantId, scopeTypescope, api-versionRemoves the default account from the scope.
setexecapi-versionSets the default account for the scope.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
scopeTenantIdstring (uuid)The tenant ID.
scopeTypestringThe scope for the default account.
api-versionstringThe api version to use.
scopestringThe Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription.

SELECT examples

Get the default account for the scope.

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

Lifecycle Methods

Removes the default account from the scope.

EXEC azure.purview.default_accounts.remove 
@scopeTenantId='{{ scopeTenantId }}' --required,
@scopeType='{{ scopeType }}' --required,
@scope='{{ scope }}',
@api-version='{{ api-version }}'
;