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