Author : HASSAN MD TAREQ | Updated : 2020/10/05

Prerequisites

Resource Manager

  • Azure Resource Manager (ARM) is the deployment and management service for Azure (management service: access control, locks, tags etc)
  • ARM provides a management layer that enables you to create, update, and delete resources in your Azure account
  • See: Benefits of using ARM

Azure resource manager overview Step 1

Azure resource manager overview Step 2

Azure Portal

Azure CLI

  • Install Azure CLI on Windows
  • Open cmd and type az --version (should show Azure CLI version)
  • Login to Azure from Azure CLI
    • az login
    • If the CLI can open your default browser, it will do so and load an Azure sign-in page
    • Otherwise, open a browser page at https://aka.ms/devicelogin and enter the authorization code displayed in your terminal.
    • Sign in with your account credentials in the browser
  • Command exmaple (after login):
    • List of resource groups: az group list
    • List of resources in a resource group:
      • az resource list --resource-group TestResourceGroup
      • az resource list --resource-group TestResourceGroup --out table
      • az resource list --resource-group TestResourceGroup --out table --query "[].{Name:name, Type:type}"

Azure PowerShell

Azure Cloud Shell

Allows to execute Azure CLI commands and Azure PowerShell commands

Azure Cloud Shell Step 1

Azure Cloud Shell Step 2

Azure Cloud Shell Step 3

Azure Cloud Shell Step 4

Azure SDK

REST API

Azure Resource Manager Template

  • Written in JavaScript Object Notation (JSON)
  • Defines infrastructure and configuration for Azure resources
  • Declarative syntax
  • Deployment
    • Using Azure Pipelines (CI/CD)
    • From GitHub
    • Using PowerShell and the Azure CLI
    • Resource Manager REST API
    • Using the Azure Portal

To see ARM template

Azure Resource Manager Template

Saved templates

Saved ARM Templates

Service Health

Azure Service Health