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