Az group create

In this Azure CLI article, we will discuss the syntax and usage of the az group create command with examples of how to use the az group create command.

Az group create

This command can help you to create a brand new resource group.

Syntax of az group create command

Below is the syntax of the az group create Azure CLI command.

az group create --location
 -- Resource Group name

Let’s discuss a few examples of how to use the az group create command.

Example

The below command will create a new Resource Group named Apple in the East US region.

az group create -l eastus -n Apple

After executing the above command, I got the output as expected.

PS /home/bijay> az group create -l eastus -n Apple                                                                                                                          {      
  "id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/Apple",
  "location": "eastus",
  "managedBy": null,
  "name": "Apple",
  "properties": {
    "provisioningState": "Succeeded"
  },
  "tags": null,
  "type": "Microsoft.Resources/resourceGroups"
}

You can see the same output in the screenshot below, where the Resource Group has been created successfully.

az group create

You can use the Az group delete command to delete an Azure Resource Group quickly.

You may also like following the articles below

Conclusion

This Azure CLI article discussed the syntax and usage of the az group create command. Thanks for reading this article !!!