policy_definitions#
Exec module for managing Policy Definitions.
- async idem_azure.exec.azure.policy.policy_definitions.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict[str, Any] [source]#
Get policy definition 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_definitions.get resource_id="value"
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.policy.policy_definitions.get - kwargs: resource_id: "/subscriptions/{subscription_id}/providers/Microsoft.Authorization/policyDefinitions/{policy_definition_name}"
- async idem_azure.exec.azure.policy.policy_definitions.list_(hub, ctx) Dict [source]#
List of policy definitions
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.policy.policy_definitions.list
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.policy.policy_definitions.list