An Azure resource group is a required grouping for all your Azure virtual machines (VMs). In this post, we’ll look into what this group structure actually means—and how you can use it for better governance and resource management for your infrastructure.

The Azure Resource Manager

First, a brief overview of how you can manage resource groups through the Azure Resource Manager, which you are probably familiar with as it’s the management layer for your resources. With the Azure Resource Manager, you can manage your infrastructure through declarative templates rather than through scripts, tagging management, deployment templates, dependency mapping, simplified role-based access control and clarified cost management.

You can organize your resource groups for securing, managing and tracking the costs related to your workflows and applications.

What are Azure resource groups?

Azure resource groups are logical collections of VMs, storage accounts, virtual networks, web apps, databases and database servers. You can use them to group related resources for an application and divide them into groups for production and nonproduction, or any other organizational structure you prefer.

The Azure resource group management model provides four levels, or “scopes” of management to organize your resources:

  • Management groups: These groups are containers to manage access, policy and compliance for multiple subscriptions. All subscriptions in a management group automatically inherit the conditions applied to the management group. They are often used for grouping subscriptions by internal department or geographical region.
  • Subscriptions: A subscription associates user accounts and the resources that were created by those user accounts. Each subscription has limits or quotas on the number of resources you can create and use. Organizations can use subscriptions to manage costs and the resources that are created by users, teams or projects. Commonly, a subscription equates to an application. 
  • Resource groups: A resource group is a logical container into which Azure resources like web apps, databases and storage accounts are deployed and managed.
  • Resources: Resources are instances of services that you create like VMs, storage or SQL databases.

One important factor to keep in mind when managing these scopes is that there’s a difference between an Azure subscription versus a management group. A management group can’t include an Azure resource. It can only include other management groups or subscriptions. Azure management groups provide a level of organization above Azure subscriptions—for example, if a subscription represents an application, an Azure management group might contain all applications managed by that department. Also, there’s no structure for a “nested” resource group in Azure—to “nest” groups for permissions, you’ll need to use a combination of permissions at the different levels listed earlier. Be sure also to differentiate the concept of an Azure resource group from an Azure availability set. An availability set in Azure is a logical grouping of VMs to inform Azure how your application is built to protect the availability of your application.

Ways to create an Azure resource group

There are several ways to create an Azure resource group:

  • The Azure Portal
  • Azure PowerShell scripts
  • The Azure CLI
  • An ARM template

Azure resource group best practices

Here are some best practices for using Azure resource groups:

  • Resources in a group should have the same lifecycle. For example, if an application requires different resources that need to be updated together, such as having a SQL database, a web app or a mobile app, then it makes sense to group these resources in the same resource group. However, for DevTest, staging or production, it’s important to use different resource groups as the resources in these groups have different lifecycles. 
  • Resources can be added to or deleted from an Azure resource group. However, each of your resources must belong to an Azure resource group, so if you remove the resources from one resource group, you must add it to another one.
  • Not all resources can be moved to different resource groups.
  • The resources you include in a resource group can be located in different Azure regions, even in different regions than the group itself. However, sometimes, it’s a best practice to keep all resources in a resource group in the same region to reduce latency or cross-region data transfer. Regardless, the group needs a location to specify where the metadata will be stored, which is necessary for some compliance policies. 
  • Grant access with resource groups. You should use resource groups to control access to your resources—more on access control later.
  • When a resource group is deleted, all resources in the group are deleted. 
  • Group limits. You can deploy up to 800 instances of a resource type in each resource group—with some exceptions.

Ready to automate Azure resource group optimization? Get started by trying the IBM Turbonomic sandbox or request your IBM Turbonomic demo today.

How to use Azure resource groups effectively for governance

Azure resource groups are a way to operationalize role-based access control (RBAC). Typically, you’ll want to grant user access at the resource group level—groups make this simpler to manage and provide greater visibility.

One of the top cloud best practices we recommend to CIOs is to give your organization a structure that supports your strategy. The way you organize your Azure resources then follows your organizational structure, making it straightforward to follow the principle of least privilege and only grant access to the minimum permissions needed—which you can do at the resource group level, rather than at the management group or subscription level. For example, a policy relating to encryption key management can be applied at the management group level, while a scheduled suspension policy might be applied at the resource group level.

Effective use of tagging allows you to identify resources for technical, automation, billing and security purposes. Tags can extend beyond resource groups, which allows you to use tags to associate groups and resources that belong to the same project, application or service. Be sure to apply tagging best practices, such as requiring a standard set of tags to be applied before a resource is deployed, to ensure you’re optimizing your resources.

How to structure resource groups

There are several common ways to organize subscriptions and resource groups. The first, unfortunately common, model is “chaos.” If this word describes your environment, don’t give up. We’ve seen many organizations go through these growing pains and wrangled their environments into working order.

Then, there’s organization by application. For example, a payroll or billing application would align to a single Azure subscription, with resource groups for each environment—development, testing, staging and so on—rolled up underneath that subscription.

We frequently see a by-environment organizational structure in place. In this case, there’s a single subscription for all of production, one for development and one for testing with resource groups aligning to each application underneath it.  The most mature way to organize is by business unit or service unit—the model that gives ownership of resources to corporate functions. For example, the finance department would have a subscription and the marketing department another. Underneath those subscriptions would be the resource groups corresponding to each application.

Manage your resources at the next level

Azure resource groups and other structures native to the cloud providers allow you to organize and govern cloud resources effectively. After you create the foundation and use Azure resource groups to provide you with the needed segmentation and alignment to your line of business and the applications they run, the next step is to start to effectively match your resources to application demand. By doing so, you’ll be able to maximize application performance while optimizing your resource costs. 

Assuring application performance and optimizing your cloud is beyond human scale—which is why we’ve dedicated our mission at IBM to managing the performance, compliance and cost of any application, on any cloud, at any scale.

The Turbonomic software allows you to visualize the parent and child relationship between subscriptions and resource groups more easily. This ability helps visually map out the framework your organization has implemented, allowing you to view your infrastructure in the application contexts you already built out. The Turbonomic software will automatically discover all the associated Azure subscriptions, their resources groups and the resources within each group, including Azure VMs, Azure managed disks, Azure SQL Servers, as well as any reserved instances (RIs), either shared RIs or scoped to a subscription or a resource group. The Turbonomic software will then analyze the utilization of each resource and start generating optimization actions. The view here shows a breakdown of a single Azure subscription and several Azure resource groups under it, the pending optimization actions per resource group, and potential savings from the actions.

Furthermore, Turbonomic software includes a powerful optimization modeling engine designed to allow clients to model different scenarios against the cloud environment in a safe sandbox mode. For example, simulate the impact of Azure Reserved VM Instance inventory utilization after rightsizing the workloads in a resource group versus without rightsizing the workloads.

Ready to learn more? Get started by trying the IBM Turbonomic sandbox

Request your IBM Turbonomic demo today


More from IBM Turbonomic

AWS EC2 instance types: Challenges and best practices for hosting your applications in AWS

7 min read - When it comes to hosting applications on Amazon Web Services (AWS), one of the most important decisions you will need to make is which Amazon Elastic Compute Cloud (EC2) instance type to choose. EC2 instances are virtual machines that allow you to run your applications on AWS. They come in various sizes and configurations—known as instance families—each designed for a specific purpose. Choosing the right instance offering and instance size for your application is critical for optimizing performance and reducing…

Unlock true Kubernetes cost savings without losing precious sleep over performance risks

4 min read - The race to innovate has likely left you (and many, many others) with unexpectedly high cloud bills and/or underutilized resources. In fact, according to Flexera’s 2023 State of the Cloud report, for the first time in a decade, “managing cloud spend” (82%) surpassed “security” (79%) to become the number one challenge facing organizations across the board. We get it. Overprovisioning is the go-to strategy for avoiding performance risks. Trying to find the balance between performance and efficiency is anything but a walk…

6 considerations to take when approximating cloud spend

5 min read - Cloud computing can add a collective $3 trillion to organizations that harness it correctly, according to McKinsey. It is poised to transform businesses and industries, revolutionize how employees and other stakeholders collaborate, and drive digital transformation initiatives. Many organizations have spent the past few years investing heavily in the cloud. Gartner predicted that cloud spending would reach nearly $600 billion by the end of 2023. There are many reasons why organizations have embraced cloud services, including improved efficiencies, cost savings,…

Measuring the impact: Unveiling the savings realized in cloud cost optimization 

3 min read - Imagine embarking on a weight-loss journey without having a scale—it’s like sailing through uncharted waters without a compass. The scale serves as your trusted navigator, providing tangible metrics and keeping you on track.   Similarly, comprehending the savings realized in a cloud-cost-optimization journey offers valuable insights into the impact of your efforts. It’s like having a financial guide by your side, showing you the tangible benefits of your optimization strategies and motivating you to keep pushing forward. It highlights the areas…