Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 8.07 KB

Introduction.md

File metadata and controls

86 lines (57 loc) · 8.07 KB

Azure Resource Manager Community Documentation - Beta Version

Work in progress - This community driven documentation is considered to be in preview stage at this time. Documentation might contain errors, might not cover every aspect or might lack complete parts, even important parts. Please help us make this documentation better by contributing anything that you think would make it better.


Introduction to Azure Resource Manager

Overview

In April 2015, Microsoft announced the public preview for template-based deployments of Azure resources using the Azure Resource Manager. With this release, building, deploying and managing large-scale complex applications was transformed into simple actions. Azure Resource Manager, a.k.a. ARM, also referred to as V2, is a set of JSON-based APIs used to manage Azure resources (virtual machines, networks, storage etc.) This is an evolution from the previous approach, Azure Service Management (a.k.a ASM), also known as Classic.

ARM present a different approach for deploying resources - instead of creating and managing individual resources, you are able to manage entire topologies of resources together as logical units, by constructing JSON template to deploy and manage all these resources.

A resource group is a logical container that holds related resources for an application, which can consist of multiple virtual machines, NICs, IP addresses, load balancers, subnets, and Network Security Groups. For example, you can manage all of the resources of the application as a single management unit. You can create, update, and delete all of them together.

The adoption of ARM for IaaS introduces capabilities such as:

  • Rich template based deployment including dependencies between objects in the template which are expressed in the template
  • Simplification of deployment
  • Role-based Access Control (RBAC)
  • Tagging of resources for identification of resources and visibility during billing
  • Parallel deployment of VMs

Note that Classic mode is obsolete and going to be supported for legacy purposes only in the future.

IaaS components deployed using ARM cannot be mixed with components created using the Classic APIs. This means that for example, virtual machines deployed with the classic deployment model cannot be included in a virtual network deployed with Resource Manager.

Components deployed using the Classic APIs, will be presented in the new Azure portal https://portal.azure.com under the "classic" label:

alt tag

Resource Manager Concepts

Resource Group

A resource group is a container that holds related resources for an application. The resource group can include all of the resources for an application, or only those resources that are logically grouped together. You can decide how you want to allocate resources to resource groups based on what makes the most sense for your organization.

Template deployment

With Resource Manager, you can create a template (in JSON format) that defines deployment and configuration of your application. This template is known as a Resource Manager template and provides a declarative way to define deployment. By using a template, you can repeatedly deploy your application throughout the app lifecycle and have confidence your resources are deployed in a consistent state.

Tags

Resource Manager provides a tagging feature that enables you to categorize resources according to your requirements for managing or billing. You might want to use tags when you have a complex collection of resource groups and resources, and need to visualize those assets in the way that makes the most sense to you. For example, you could tag resources that serve a similar role in your organization or belong to the same department.

Access control

Resource Manager enables you to control who has access to specific actions for your organization. It natively integrates OAuth and Role-Based Access Control (RBAC) into the management platform and applies that access control to all services in your resource group. You can add users to pre-defined platform and resource-specific roles and apply those roles to a subscription, resource group or resource to limit access. For example, you can take advantage of the pre-defined role called SQL DB Contributor that permits users to manage databases, but not database servers or security policies. You add users in your organization that need this type of access to the SQL DB Contributor role and apply the role to the subscription, resource group or resource.

Resource Providers

Resource providers are services that provide resources for your application. Using the resource provider APIs, you can manage, create, delete and update ARM resources. ARM itself is a coordination layer across a set of underlying resource providers, and each resource provider defines the structure of the JSON that goes into the template document. A Network Interface is a resource exposed by Microsoft.Network Provider, same for all other resources. Each is exposed in a set of APIs.

Architecture

In the classic ASM model, virtual machines exist within a cloud service. Virtual machines are automatically provided with a network interface card (NIC) and an IP address assigned by Azure. Additionally, the cloud service contains an external load balancer instance, a public IP address, and default endpoints to allow remote desktop and remote PowerShell traffic for Windows-based virtual machines and Secure Shell (SSH) traffic for Linux-based virtual machines.

Typical ASM deployment: alt tag

The Resource Manager model removes the use of the Cloud Service (PaaS still uses Cloud Services). All VMs live within a Resource Group, which can also contain other types of resources such as storage. All the componants - Storage Account, Network compontants, Load Balancer etc. need to be created seperatly, using the appropriate resource provider.

There are relationships between the resources within the resource providers:

  • A virtual machine depends on a specific storage account to store its disks in blob storage.
  • A virtual machine references a specific NIC defined in the NRP (required) and an availability set (optional).
  • A NIC references the virtual machine's assigned IP address (required), the subnet of the virtual network for the virtual machine (required), and to a Network Security Group (optional).
  • A subnet within a virtual network references a Network Security Group (optional).
  • A load balancer instance references the backend pool of IP addresses that include the NIC of a virtual machine (optional) and references a load balancer public or private IP address (optional).

When executing a template, Resource Manager ensures that the resources for a configuration are created in the correct order to preserve the dependencies and references. For example, Resource Manager will not create the NIC for a virtual machine until it has created the virtual network with a subnet and an IP address.

Example ARM application deployed in a single resource group: alt tag

All of these resources of this application are managed through the single resource group that contains them:

  • Two virtual machines that use the same storage account, are in the same availability set, and on the same subnet of a virtual network.
  • A single NIC and VM IP address for each virtual machine.
  • An external load balancer that distributes Internet traffic to the NICs of the two virtual machines.

References and Resources