default_accounts
Creates, updates, deletes, gets or lists a default_accounts
resource.
Overview
Name | default_accounts |
Type | Resource |
Id | azure.purview.default_accounts |
Fields
The following fields are returned by SELECT
queries:
- get
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | scopeTenantId , scopeType | scope , api-version | Get the default account for the scope. |
remove | exec | scopeTenantId , scopeType | scope , api-version | Removes the default account from the scope. |
set | exec | api-version | Sets 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.
Name | Datatype | Description |
---|---|---|
scopeTenantId | string (uuid) | The tenant ID. |
scopeType | string | The scope for the default account. |
api-version | string | The api version to use. |
scope | string | The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription. |
SELECT
examples
- get
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
- remove
- set
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 }}'
;
Sets the default account for the scope.
EXEC azure.purview.default_accounts.set
@api-version='{{ api-version }}'
@@json=
'{
"accountName": "{{ accountName }}",
"resourceGroupName": "{{ resourceGroupName }}",
"scope": "{{ scope }}",
"scopeTenantId": "{{ scopeTenantId }}",
"scopeType": "{{ scopeType }}",
"subscriptionId": "{{ subscriptionId }}"
}'
;