In this, we will understand Azure Resources – Principle of Resource Groups.

Azure Resource Groups are a fundamental concept in Azure that allow you to group and manage your resources in a logical and organized manner. Resource groups provide a way to manage access control, monitoring, and billing for all the resources in a single unit.

The principle of resource groups in Azure is based on the following key concepts:

  1. Logical grouping: Resource groups enable you to logically group your Azure resources based on your organization’s requirements. You can group resources based on their function, environment, or any other criteria that makes sense for your deployment.
  2. Access control: By using Azure Resource Manager (ARM), you can manage access control for all resources in a resource group. You can assign users and groups specific permissions to manage or access resources within a group.
  3. Monitoring: Resource groups provide a way to monitor and manage resources in a single unit. You can set up alerts and notifications for specific resources or the entire group.
  4. Billing: By grouping resources into a single resource group, you can manage billing for all resources in one place. This simplifies the billing process and makes it easier to track costs.

Create a Resource Group

Resource groups can be created by using the following methods:

  • Azure portal
  • Azure PowerShell
  • Templates
  • Azure CLI
  • Azure SDKs (like .NET, Java)
  1. Log in to your Azure account at https://portal.azure.com/
  2. On the left-hand side menu, click on “Resource groups”.
  3. Click on “+ Add” to create a new resource group.
  4. In the “Basics” tab, provide a name for your resource group.
  5. Select a subscription to associate with the resource group.
  6. Select a region to create the resource group in.
  7. Click on “Review + Create” to review your settings.
  8. Review your settings and click on “Create” to create the resource group.

Once you have completed these steps, your resource group will be created, and you can start adding resources to it. Remember to choose a meaningful and descriptive name for your resource group, as it will help you to easily identify and manage the resources within it.

Explore a resource group and add a resource

  • In the portal, select Resource groups on the left menu, and select your newly created resource group.
  • On the Overview panel, there’s the basic information about the resource group like the subscription it’s in, the subscription ID, any tags that are applied, and a history of the deployments to this resource group. We’ll cover tags in the next unit. The deployments link takes you to a new panel with the history of all deployments to this resource group.
  • Across the top you can add more resources, change the columns in the list, move the resource group to another subscription, or delete it entirely.
  • On the left menu, there are a number of options
  • We don’t have any resources in this resource group yet, so the list at the bottom is empty. Let’s create a couple resources inside the resource group.
    • Click + Add at the top or click the Create resources, either will work.
    • Search for Virtual network. The first result should be the virtual network resource. Click it, and on the next screen, make sure Select a deployment model is set to Resource Manager. Click Create.
    • Name the virtual network msftlearn-vnet1. For the Resource group drop-down, select the resource group that you created earlier. Enter 192.168.0.0/24 for both the Address space and subnet Address range. Leave the defaults for all other options, and click Create.
    • Repeat the steps again to create one more VNet, where both the Address space and subnet Address range are for a different network than your previous network, (e.g. 192.168.100.0/24). Name it msftlearn-vnet2, and make sure to place it in the resource group that you created earlier.
    • Go back to your resource group, and on the Overview panel you should see the two VNets you created.

Use resource groups for organization

Using Resource Groups in Azure is a great way to organize and manage your resources. Here are some tips on how to use Resource Groups for organization:

  1. Use a naming convention: When naming your Resource Groups, it’s important to use a naming convention that makes sense for your organization. Consider including the environment (e.g., production, development, testing) or the application name in the Resource Group name.
  2. Group resources by function: When creating Resource Groups, group resources based on their function. For example, you might create a Resource Group for all your storage accounts, another for your virtual machines, and another for your networking resources.
  3. Assign tags: Assign tags to your resources to help you identify and manage them more easily. For example, you might assign tags based on the environment, the department, or the project.
  4. Manage access control: Use Azure Resource Manager (ARM) to manage access control for all resources in a Resource Group. You can assign users and groups specific permissions to manage or access resources within a group.
  5. Monitor resources: Use Azure Monitor to monitor and manage resources in a Resource Group. You can set up alerts and notifications for specific resources or the entire group.

AZ-900 Exam Practice Questions

Question: You are responsible for managing Azure resources for a large organization. You need to group resources based on their function to simplify management. Which Azure feature should you use?

A) Azure Network Security Group

B) Azure Virtual Network

C) Azure Resource Group

D) Azure Storage Account

Answer: C) Azure Resource Group

Explanation: Resource Groups allow you to logically group and organize your resources based on their function or any other criteria that makes sense for your deployment. This helps you to manage and access all the resources in a single unit, making management simpler.

Question: You have several Resource Groups in Azure, but you need to monitor them in a centralized manner. Which Azure service should you use?

A) Azure Policy

B) Azure Monitor

C) Azure Security Center

D) Azure Automation

Answer: B) Azure Monitor

Explanation: Azure Monitor provides a way to monitor and manage resources in a single unit. You can set up alerts and notifications for specific resources or the entire group. By using Azure Monitor, you can monitor all your Resource Groups in a centralized manner.

Question: You need to ensure that only certain users can access and manage resources in a Resource Group. Which Azure feature should you use?

A) Azure Resource Manager

B) Azure Virtual Network

C) Azure AD

D) Azure Policy

Answer: A) Azure Resource Manager

Explanation: Azure Resource Manager (ARM) enables you to manage access control for all resources in a Resource Group. You can assign users and groups specific permissions to manage or access resources within a group. By using ARM, you can ensure that only authorized users can access and manage resources in a Resource Group.

Reference: Microsoft doc

For more on Tutorials visit – Microsoft Azure Fundamental (AZ-900)

Menu