Author : MD TAREQ HASSAN | 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 Portal
- https://portal.azure.com/
- Create resource group: https://portal.azure.com/#create/Microsoft.ResourceGroup
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}"
- List of resource groups:
Azure PowerShell
- Azure PowerShell is a set of cmdlets for managing Azure resources directly from the PowerShell command line
- Designed for managing and administering Azure resources from the command line
- Provides powerful features for automation
- Details: https://docs.microsoft.com/en-us/powershell/azure/
- Install Azure PowerShell
- Azure PowerShell commands
Azure Cloud Shell
Allows to execute Azure CLI commands and Azure PowerShell commands
Azure SDK
- Programmatically manage and interact with Azure services
- The Azure SDKs are collections of libraries built to make it easier to use Azure services from your language of choice
- Azure SDK delivers a platform for developers to leverage the wide variety of Azure services in their language of choice
- https://azure.microsoft.com/en-us/downloads/
- Github repo: https://github.com/Azure/azure-sdk
REST API
- RESTful API is exposed to manage resources via Azure Resource Manager
- See: https://github.com/uglide/azure-content/blob/master/articles/resource-manager-rest-api.md
- Microsoft doc: https://docs.microsoft.com/en-us/rest/api/resources/
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
- https://docs.microsoft.com/en-gb/azure/azure-resource-manager/templates/template-syntax
- https://github.com/Azure/azure-quickstart-templates
To see ARM template
- Go to: https://portal.azure.com/#home
- Resource groups > Select a single Resource Group (or select multiple)
- Search “Export” > Export template
Saved templates
- Go to: https://portal.azure.com/#allservices
- Search “template”
Service Health
- Go to: https://portal.azure.com/#allservices
- Search “health” > Service Health