policy_assignments#
Exec module for managing policy assignments.
- async idem_azure.exec.azure.policy.policy_assignments.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict[str, Any] [source]#
Get policy assignments resource from resource_id.
- Parameters:
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.policy.policy_assignments.get resource_id="value" raw="False"
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.policy.policy_assignments.get - kwargs: resource_id: "{scope}/providers/Microsoft.Authorization/policyAssignments/{policy_assignment_name}" raw: False
- async idem_azure.exec.azure.policy.policy_assignments.list_(hub, ctx) Dict [source]#
List of policy assignments
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.policy.policy_assignments.list
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.policy.policy_assignments1.list