2022-10-03 22:17:25 +01:00
|
|
|
# az group
|
|
|
|
|
|
|
|
> Manage resource groups and template deployments.
|
2023-10-15 08:42:29 +01:00
|
|
|
> Part of `azure-cli` (also known as `az`).
|
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/group>.
|
2022-10-03 22:17:25 +01:00
|
|
|
|
|
|
|
- Create a new resource group:
|
|
|
|
|
|
|
|
`az group create --name {{name}} --location {{location}}`
|
|
|
|
|
|
|
|
- Check if a resource group exists:
|
|
|
|
|
|
|
|
`az group exists --name {{name}}`
|
|
|
|
|
|
|
|
- Delete a resource group:
|
|
|
|
|
|
|
|
`az group delete --name {{name}}`
|
|
|
|
|
|
|
|
- Wait until a condition of the resource group is met:
|
|
|
|
|
|
|
|
`az group wait --name {{name}} --{{created|deleted|exists|updated}}`
|