Create a resource group
In this task you'll create a resource group.
A resource group is a folder for Azure resources that belong together. Everything you create, from a virtual machine to a storage account, has to live in exactly one.
Most teams use one group per project and environment, so they can give people access, follow the costs and delete everything in one go.
Example. SS Kaiser keeps its test shop in rg-shop-test and its live shop in rg-shop-prod. Testers get access to the test group only, and the whole group is deleted at the end of each sprint.
Before you start
You need: Contributor on the subscription. Time: 3 minutes.
Where to look
- Home
- Resource groups
- + Create
Steps
- Open Resource groups and select + Create.
- Pick your Subscription.On a free account there's only one, so it's already filled in.
- Type a name: rg-portal-practice.Names can't be changed later, so it helps to follow a pattern such as rg-project-environment. The rest of this guide uses this name.
- Choose a Region near you, such as UK South. It may start on East US.This is only where the group's own records are kept. Resources inside it can be in other regions.
- Select Next to reach the Tags tab and add purpose = practice.Optional, but it makes your test resources easy to find and delete.
- Select Review + create, check the summary, then Create. A notification says Resource group created: select Go to resource group.The portal may take you back to Home after creating. The notification is the quickest way to the new group.
Tip. Quickest route: type resource groups in the search bar at the top of any page.
Commands
# Create the group, with a tag
az group create --name rg-portal-practice --location uksouth --tags purpose=practice
# Clean up: delete the group and everything in it
az group delete --name rg-portal-practice --yes
Watch out for
- Cost
- An empty resource group is free. You pay for what you put in it.
- Security
- Anyone with Owner or Contributor on the group can change everything inside it. Where you can, give people access to a group rather than the whole subscription.
- Common mistakes
- Groups can't be renamed or put inside other groups. Deleting a group deletes every resource in it, with no undo.
Clean up
- Resource groups
- rg-portal-practice
- Delete resource group
Keep this group for now: the next tasks use it. When you've finished, delete it as shown in the last task of this section.
Words to know
- Resource group
- A folder for resources that are created, managed and deleted together.
- Region
- A set of Microsoft datacentres in one area, such as UK South or West Europe.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On