Skip to main content

policy_tokens

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

Overview

Namepolicy_tokens
TypeResource
Idazure.resource.policy_tokens

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
acquireexecsubscription_id, operationAcquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
acquire_at_management_groupexecmanagement_group_name, operationAcquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.

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
management_group_namestringThe name of the management group. The name is case insensitive. Required.
subscription_idstring

Lifecycle Methods

Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.

EXEC azure.resource.policy_tokens.acquire 
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"operation": "{{ operation }}",
"changeReference": "{{ changeReference }}"
}'
;