Azure Resource Manager Explained: How Azure Organises and Deploys Resources

Azure Resource Manager Explained: How Azure Organises and Deploys Resources

Azure Resource Manager explained simply: it is the deployment and management layer behind every Azure resource, and every request from the portal, the command line or an API passes through it. The central question it answers is how Azure keeps thousands of resources organised, secured and repeatable. The short answer is that it groups resources into a four-level hierarchy and deploys them from declarative templates, so the same definition produces the same environment every time.

You use Azure Resource Manager constantly, whether you know it or not. Creating a virtual machine in the portal, running a command in the Azure CLI or deploying a template all send requests to the same management layer. Our guide to what Microsoft Azure services actually do covers the services that Resource Manager organises.

Key takeaways

  • Azure Resource Manager is the control plane for Azure: it authenticates, authorises and routes every management request.
  • Azure organises resources into four scopes: management groups, subscriptions, resource groups and resources.
  • A resource group is a container for resources that share a lifecycle, and each resource belongs to exactly one group.
  • ARM templates in JSON and Bicep files both describe infrastructure declaratively; Bicep is Microsoft’s recommended option for new work.
  • Resource locks, tags and Azure Policy all attach at a scope, and settings at a higher scope flow down to the levels below.

What Azure Resource Manager is

Azure Resource Manager, usually shortened to ARM, is the deployment and management service for Azure. It provides the management layer that lets you create, update and delete resources in your Azure account, and it sits between you and the individual Azure services. When you ask for a new storage account, Resource Manager checks who you are, checks what you are allowed to do, and then forwards the request to the storage service.

Before Resource Manager, Azure used a classic deployment model in which each resource was managed on its own. That made it hard to deploy a group of related resources together or to apply the same rules to all of them. Resource Manager replaced that model by treating resources as part of a hierarchy, so a team can manage a whole application, its network, its database and its storage as one unit. Best for: any team running Azure, because there is no way to use Azure without going through Resource Manager.

The four management scopes

Azure organises everything into four levels. At the top are management groups, which contain subscriptions and let you apply governance, such as Azure Policy and role-based access control, across many subscriptions at once. Below them are subscriptions, which are the billing unit: each subscription has its own usage limits and its own bill.

Below subscriptions sit resource groups, and below those are the resources themselves, such as virtual machines, storage accounts, web apps and databases. Settings applied at a higher scope are inherited by the levels below, so a policy assigned to a management group affects every subscription, group and resource beneath it. That inheritance is what makes governance practical at scale: you set a rule once and it applies everywhere underneath.

Scope What it contains What it is used for
Management group Subscriptions Governance across many subscriptions
Subscription Resource groups Billing and usage limits
Resource group Resources Grouping resources with a shared lifecycle
Resource The service itself The actual workload, such as a VM or database

Resource groups, explained

A resource group is a container that holds related resources for an Azure solution. You decide which resources belong together, usually by lifecycle: things that get deployed and deleted together go in the same group, such as a web app, its database and the storage it uses. Each resource lives in exactly one resource group, and resource groups cannot be nested inside each other.

Deleting a resource group deletes all the resources inside it, which makes clean-up straightforward but also dangerous, so production groups deserve a lock. The resource group also stores metadata about its resources, including the group’s location. Microsoft recommends placing the group and its resources in the same region, so a regional problem does not leave you unable to update resources whose metadata is unavailable.

Deploying with ARM templates and Bicep

Resource Manager deploys infrastructure from declarative files, which means you describe the end state you want and Resource Manager works out how to get there. An ARM template is a JSON file that defines the resources to deploy, with sections for parameters, variables, resources and outputs. You submit the file, Resource Manager validates it, creates the resources in the right order, running independent steps in parallel, and records the deployment in the history of its scope.

Bicep is Microsoft’s newer language for the same job. A Bicep file describes the same resources with far less punctuation, supports modules and comments, and compiles down to an ARM template before deployment. Because it compiles to ARM JSON, Bicep supports every resource type and API version that templates support. Microsoft recommends Bicep for new work, while existing ARM templates keep working. Unlike some tools, neither ARM templates nor Bicep keep a separate state file: Resource Manager itself is the record of what exists.

A laptop showing an infrastructure-as-code file beside a notebook and coffee cup
A Bicep file describes the resources you want; Resource Manager works out the order to create them.

Deployment modes and history

Deployments to a resource group run in one of two modes. Incremental mode, the default, creates and updates the resources in the template and leaves anything else in the group alone. Complete mode also deletes resources in the group that are not in the template, which keeps a group exactly matching its definition but can remove things you meant to keep.

Every deployment is recorded in the deployment history of its scope, with its inputs, outputs and results, which helps when something fails. You can also deploy templates at tenant, management group or subscription scope, depending on what the template creates, such as a policy assignment or a new resource group. Templates can reference other templates and use functions to build names, connection strings and configuration values at deploy time.

Locks, tags and policy

Resource Manager provides three controls that make an Azure estate manageable. Resource locks stop a resource group or a resource from being deleted or changed, even by someone who would normally have permission. A CanNotDelete lock blocks deletion, while a ReadOnly lock blocks changes as well as deletion. Locks are the simplest defence against an accidental clean-up.

Tags are name and value pairs attached to resources and resource groups, used to record the owner, the environment, the cost centre or the application. They feed into cost reporting and automation, so a consistent tagging scheme pays for itself quickly. Azure Policy lets you set rules that resources must follow, such as only allowing certain regions or requiring specific tags, and it can deny non-compliant deployments automatically. Our guide to Microsoft Azure best practices explains how these controls fit into a well-run estate.

ARM templates, Bicep or Terraform?

The three options are all declarative and can all run from a pipeline, but they differ in scope and authoring experience. ARM templates are the native JSON format, best kept where they already exist or where tooling generates JSON. Bicep is the cleaner Azure-only option, with typed files and no state file to manage. Terraform is the multi-cloud option: one language for Azure, AWS and Google Cloud, with its own state file and a large provider ecosystem.

The practical rule is to choose Bicep for Azure-only platforms, keep ARM JSON where it already works, and choose Terraform when one team runs several clouds. Mixing tools in one estate is possible but creates two sources of truth, so pick one per platform and stick with it. Whichever you choose, keep the files in source control, review changes like code, and deploy them through a pipeline rather than from a laptop.

Decision framework: organising an Azure estate

  • Group resources by lifecycle and application, not by type: a web app and its database belong together, not in separate groups per service.
  • Use one subscription per environment or per business unit where billing separation matters, and management groups to govern them together.
  • Name resource groups consistently, such as rg-appname-environment, so they are easy to find and filter.
  • Tag every resource with owner, environment and cost centre, and enforce tags with Azure Policy.
  • Put a CanNotDelete lock on production resource groups, and a ReadOnly lock on shared networking groups.
  • Write infrastructure as Bicep for new work, store it in source control, and deploy it through a pipeline.
  • Use incremental mode by default, and reserve complete mode for groups that must match their template exactly.
  • Check deployment history first when a deployment fails, before re-running it blindly.

Frequently asked questions

What is Azure Resource Manager?

Azure Resource Manager is the deployment and management layer for Azure. Every request from the portal, the Azure CLI, PowerShell or an API is authenticated, authorised and routed through it, and it organises resources into management groups, subscriptions, resource groups and resources.

What is a resource group in Azure?

A resource group is a container for related resources that share a lifecycle, such as a web app and its database. Each resource belongs to exactly one group, groups cannot be nested, and deleting a group deletes everything inside it.

What is the difference between an ARM template and Bicep?

An ARM template is a JSON file that declaratively defines Azure resources. Bicep is a simpler language that compiles down to an ARM template, with cleaner syntax, modules and comments. Microsoft recommends Bicep for new work.

What are the four Azure management scopes?

The four scopes are management groups, subscriptions, resource groups and resources. Settings applied at a higher scope, such as a policy assignment, are inherited by everything below it.

What is the difference between incremental and complete deployment mode?

Incremental mode, the default, creates and updates the resources in the template and leaves other resources in the group alone. Complete mode also deletes resources in the group that are not in the template.

Is Azure Resource Manager the same as Azure Blueprints?

No. Azure Blueprints was a separate service for packaging policies and templates, and Microsoft has announced its retirement, with deployment stacks as the recommended replacement. Resource Manager is the underlying deployment layer that both relied on.

Latest articles

Scroll to Top