AppDividend
Latest Code Tutorials

How To Create Resource Group In Microsoft Azure

0

Azure Resource Manager is the deployment and management service for Azure. It provides the management layer that enables you to create, update, and delete resources in your Azure subscription. You can use the management features, like access control, locks, and tags, to secure and organize your resources after deployment.

What is Azure Resource Group

A resource group contains the resources required to deploy the vSRX VM in Azure successfully. The resource group is the container that holds related resources for an Azure solution.

In Microsoft Azure, you logically group related resources such as virtual networks, storage accounts, and virtual machines (VMs) to deploy, manage, and maintain as a single entity.

A resource group is a container that holds related resources for the MS Azure solution. The resource group can include all the resources for a solution, or only those resources that you need to manage as a group.

You have to decide how you need to allocate resources to resource groups based on what suits your business. For better planning, add resources that share the same lifecycle to the same resource group so that you can quickly deploy, update, and delete them as a group.

The resource group saves metadata about the resources. Therefore, when you specify the location for the resource group, you are determining where that metadata is stored. For compliance reasons, you may want to ensure that your data is stored in a specific region.

The resource group saves metadata about the resources. When you specify the location for the resource group, you’re determining where that metadata is stored.

Azure Resource Terminology

If you are new to Microsoft Azure Resource Manager, there are some terms you might not be familiar with. See the following terms one by one.

Resource

The resource is a manageable element that is available through Azure.

Virtual machines, web apps, databases, storage accounts, and virtual networks are examples of resources in Azure.

Resource group

It is a container that holds related resources for an Azure solution. The resource group includes those resources that you need to manage as a group.

You decide which resources belong in the resource group based on what makes suits for your company. See Resource groups.

Resource provider

A service that supplies Azure resources. For example, a standard resource provider is Microsoft.Compute, which supplies the virtual machine resource.

Microsoft.Storage is another familiar resource provider. See Resource providers and types.

Resource Manager template

JavaScript Object Notation (JSON) file defines one or more resources to deploy to the resource group or subscription.

The template can be used to deploy the resources repeatedly and consistently.

Declarative syntax

The syntax that lets you state “Here is what I intend to create” without having to write a sequence of programming commands to create it.

The Resource Manager template is an example of the declarative syntax. In the file, you can define the properties for the infrastructure to deploy to Azure. See the Template deployment overview.

Create Resource Group In Microsoft Azure

Step 1: Sign In to the Microsoft Azure account

Go to the Azure Portal, and if you have not signed up, then please sign up. Make sure, and you have a credit card to complete your signup and start a free trial.

For this tutorial, I have my free tier account on Azure. When you sign up, Microsoft Provides Rs. 13,300 INR credit limit to play with different services of Azure. Yours may be different depending on the country you are based on.

This tutorial is written in 2020, so currently, my Portal homepage looks like this. Yours might be different based on which year you are on when you are accessing the azure portal.

 

Microsoft Azure

From the screenshot, you can see that there is already one resource available in my account, which I have created earlier.

Step 2: Go to Resource Groups

In the above screenshot, you can see that there is a button with an icon called Resource Groups.

Click on that, and you will see the following page where all of your resource groups are available if you have created any in the past; otherwise, the list would be empty.

I have created one in the past, so my listing page looks like below.

 

Resource groups

Step 3: Add a new Resource group

You can see that there is one button called Add, which helps us to create a new resource group.

So click on the button, and you will arrive at this page.

 

How To Create Resource Group In Microsoft Azure

Enter the following values:

  1. Subscription: Select your Azure subscription. Mine is Free tier
  2. Resource group: Enter the new resource group name. Mine is MyAppResource
  3. Region: Select the Azure location, such as Central US.

Step 4: Click on Next: tags button

After filling the above three details, you need to click Next: Tags > button, and you will see the following page.

 

Create a resource group tag

I have added one key: value pair called MAR: 2.

Apply tags to your Azure resources to logically organize them by categories.

A tag consists of a key (name) and a value. Tag names are case-insensitive, and tag values are case-sensitive.

Step 5: Click on Next: Review + Create button

After creating a tag, now you can click on Next: Review + Create > button.

If your tag(s) pass the validation, then you can see the following screen.

 

Create an azure resource group

Step 6: Create a Resource Group

Finally, click on the Create button, and it will create a resource group.

After 3-4 seconds, you will redirect to the resource group’s listing page, but you will not see a newly created group because it takes 20-30 seconds to appear on the page. So keep refresh until it appears in the listing.

 

Resource Group default directory

You can see that, and now we have two resource groups because one was already there before starting the tutorial, and our newly created MyAppResource group is there, which is under Free trial.

Step 7: Go to MyAppResource

Click on the MyAppResource, and you will see the following screen.

MyAppResource

You can see that, from this group, I can add new resources and track the deployments, costs, activity log, IAM user policy, etc.

You can also see your subscription tier, deployments, subscription id, tags, etc.

To customize the information displayed for the resource groups, select Edit columns.

The following screenshot shows the additional columns you could add to the display.

 

Delete resource groups in Azure

You can change the columns according to your needs here. After adding your required columns, click on the apply button and you are ready to go.

This resource group is for demo purposes, and I will delete this resource group as soon as this tutorial is over. So, this is how you can create a resource group in Microsoft Azure.

List resource groups in Azure

Step 1

Sign in to the Azure portal.

Step 2

To list the resource groups, select Resource groups.

It will list all the created resource groups.

Delete resource groups

If you no longer required a specific resource group, then you can delete it.

Step 1

Open the resource group you want to delete by clicking on a specific group from the listing page.

Step 2

Now, You can see that there is one Delete resource group button. Click on that button, and you will see the following screen.

 

Delete resource groups in Azure

Here, it will ask for the name of your Resource group for confirmation.

My Resource Group name is MyAppResource so, and I have entered that already. 

Now, click on the Delete button. After one minute, you will get the notification like Deleted resource group MyAppResource.

Now, go to the listing page, and you will see that it has been removed.

That is it, Guys. I hope you find How To Create Resource Group In Microsoft Azure article helpful.

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.