Management tools
Every tool is a door to the same Resource Manager
The portal, the CLI and PowerShell all call Azure Resource Manager. Cloud Shell hosts both in a browser.
There are several ways to work with Azure, and it helps to see what they share. Everything in Azure is created and changed by one service, Azure Resource Manager. The portal is a web site that sends it requests when you click. The Azure C L I and Azure PowerShell send it the same requests from typed commands, which you can save as scripts. And Cloud Shell is a shell in the browser offering either of those two, with nothing to install.
Management tools · Going deeper
Which tool, when
The portal to explore, the CLI or PowerShell to script, templates to repeat.
Infrastructure as code
A template says what should exist, not what to do
Deploying the same template twice creates 0 new resources. Adding one line creates 1.
Scripts list steps. A template does something different. This template declares three resources. It does not say create them. It says they should exist. Deploy it into an empty resource group, and Resource Manager creates all 3. Deploy the same file again. All three already exist, so it creates nothing. Add one database to the file and deploy a third time. Only the database is created. The file is always the description of the whole.
Infrastructure as code · Going deeper
ARM and ARM templates
Declarative, repeatable, orchestrated, modular and extensible.
Check yourself
The resource group already holds exactly what the template declares. The template is deployed again, unchanged. What does Resource Manager do?
Azure Arc
Arc brings machines outside Azure under the same management
Azure Arc projects servers and clusters from your datacentre and other clouds into Resource Manager.
Most companies do not run everything in Azure. Inside Azure, a virtual machine is a resource, and policy, tags, roles and monitoring all apply to it. A server in your own datacentre, and a machine and a Kubernetes cluster with another cloud provider, are outside all of that. Azure Arc connects them to Resource Manager. They now appear in Azure as resources beside the native one, and the same policy, tags, roles and monitoring cover all four. Nothing has moved.
Azure Arc · Going deeper
What Arc can manage
Servers, Kubernetes clusters, data services, SQL Server and virtual machines.
Service Health
Health comes in three views, each narrower than the last
Azure status covers all 60 squares, Service Health the 6 you use, Resource Health each resource.
When something seems wrong, the first question is whose problem it is. Picture Azure as a grid, each square one service in one region. Azure status is a public page that covers the whole grid, and reports only major incidents. Service Health narrows it to the 6 squares you actually use, and adds planned maintenance. Resource Health goes inside a square, to each resource of yours. Here one virtual machine is unavailable, although no wider incident exists.
Service Health · Going deeper
Azure Advisor
Advisor recommends on reliability, security, performance, cost and operational excellence.
Check yourself
Both pages shown report no problems, yet one virtual machine has stopped responding. Where do you find the state of that machine?
Azure Monitor
Monitor gathers metrics and logs, then three tools put them to use
Azure Monitor collects metrics and logs. Log Analytics queries, alerts notify, Application Insights watches apps.
Service Health tells you about Azure. Azure Monitor tells you about what is yours. It collects from five kinds of source: applications, machines and containers, Azure resources, the subscription and tenant, and things outside Azure. What it collects is of two kinds: metrics, which are numbers over time, and logs, which are records of events. Log Analytics is where you write queries over the logs. Alerts watch for a rule being met, and then notify people or start an action. And Application Insights looks inside an application: its requests, failures and speed.
Azure Monitor · Going deeper · 1 of 2
Log Analytics, alerts, Application Insights
Log Analytics queries, alerts call an action group, Application Insights tracks an app.
Azure Monitor · Going deeper · 2 of 2
Clue words for managing and monitoring
Advisor advises, Service Health reports on Azure, Monitor measures what is yours.
Check yourself
Developers want to see the request rate, response times and failures inside the web application shown. Which part of Azure Monitor is the box marked "?"
Lesson complete
You finished “Managing, deploying and monitoring Azure”
Answer the questions along the way to see your score here.