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