attach_subscriptions#
Exec module for managing Attach Subscriptions
- async idem_azure.exec.azure.subscription.attach_subscriptions.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict [source]#
Gets the subscription attached to a management group from azure account.
- Parameters:
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id
idem exec azure.subscription.attach_subscriptions.get resource_id="/providers/Microsoft.Management/managementGroups/{management_group_id}/subscriptions/{subscription_id}" raw="False"
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.subscription.attach_subscriptions.get - kwargs: resource_id: /providers/Microsoft.Management/managementGroups/{management_group_id}/subscriptions/{subscription_id} raw: False
- async idem_azure.exec.azure.subscription.attach_subscriptions.list_(hub, ctx) Dict [source]#
Lists all Attached Subscriptions.
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id
idem exec azure.subscription.attach_subscriptions.list
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.subscription.attach_subscriptions.list