Forrest logo
back to the az tool

az-group:tldr:6a9c8

az-group: Create a new resource group.
$ az group create --name ${name} --location ${location}
try on your machine

The command az group create is used to create a resource group in Azure.

Azure resource groups are logical containers that hold related resources for an Azure solution. Resources within the same group can be managed as a single entity, enabling easy organization and management.

Here is a breakdown of the command:

  • az: This is the Azure command-line interface (CLI) tool.
  • group create: This specific command is used to create a new resource group.
  • --name ${name}: This specifies the name of the resource group to be created. ${name} is a placeholder that indicates a variable. You need to replace ${name} with the desired name of the resource group.
  • --location ${location}: This specifies the Azure region where the resource group will be created. ${location} is another placeholder that indicates a variable. You need to replace ${location} with the desired Azure region, such as "eastus", "westeurope", etc.

When you run the command with the actual values, it will create a new resource group with the provided name in the specified Azure region.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool