**Autogenerated function**
Delete Policy Assignment
Args:
name(str): The identifier for this state.
scope(str): The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
policy_assignment_name(str): The name of the policy assignment to delete.
Returns:
dict
Examples:
.. code-block:: sls
resource_is_absent:
azure.policy.policy_assignments.absent:
- name: value
- scope: value
- policy_assignment_name: value
**Autogenerated function**
Describe the resource in a way that can be recreated/managed with the corresponding "present" function
List all Policy Assignments under the same subscription
Returns:
Dict[str, Any]
Examples:
.. code-block:: bash
$ idem describe azure.policy.policy_assignments
**Autogenerated function**
Create or update Policy Assignments
Args:
name(str): The identifier for this state.
scope(str): The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
policy_assignment_name(str): The name which should be used for this Policy Assignment. Changing this forces a new Resource Policy Assignment to be created.
policy_definition_id(str): The ID of the Policy Definition or Policy Definition Set. Changing this forces a new Policy Assignment to be created
parameters(Dict, optional): Policy assignment parameters with respect to policy definition rule. Defaults to {}.
resource_id(str, optional): Policy Assignment resource id on Azure
Returns:
dict
Examples:
.. code-block:: sls
resource_is_present:
azure.policy.policy_assignments.present:
- name: value
- scope: value
- policy_assignment_name: value
- policy_definition_id: value