Resource Groups with Azure cloud shell


Resource Groups with Azure cloud shell.

To create a resource group with azure cloud shell:

  • You will need to specify the location (region)
  • you need to specify the name of the resource group
Both of these are required parameters. Other optional parameters you can specify. As an example, you can specify the subscription if you have more than one subscription. You can also specify tags if you want to tag a resource group. If you didn't specify a subscription, it will be in the default subscritpion . 

Below is an example for creating resource-group. There will be output , see below
az group create --name RG99 --location westus







To list resource groups:
az group list


We will try to tag a resource group, but before tagging a resource group, we need to create a tag in azure cloud(the name of the tag we are creating is WHITE):
az tag create --name WHITE






To tag a resource group:
az group update --tags WHITE --name RG99








To delete an azure resource group: (we did a list after deleting, and we saw that RG99 has been delete)
az group delete --name RG99









To see tshe details of one azure resource group: (it will show information as if you are listing resource-group)
az group show --name RG6








For more information regarding our services , please visit 

We hope this was helpful, and we would like to thank you for reading

Comments

Popular posts from this blog

Azure Virtual Network with Azure cloud shell

Create azure virtual machine with azure cloud shell