What is an Automation Account?
An Automation Account in Azure is a container for managing automation resources.
It allows you to run Runbooks (scripts) that automate repetitive administrative tasks.
Runbooks
-
Scripts that define the task to be automated.
-
Can be written in:
-
PowerShell
-
Python
-
Graphical (drag-and-drop workflow)
-
-
Can run on Azure or hybrid (on-prem + Azure via Hybrid Runbook Worker).
Common Use Cases
-
Start/stop VMs on a schedule → save costs on dev/test environments.
-
Patch management → automatically install OS/security updates on VMs.
-
Resource cleanup → delete unused resources after certain conditions.
-
Respond to alerts → restart VM or scale resources if thresholds exceeded.
Scheduling & Triggers
-
Runbooks can be triggered by:
-
A schedule (e.g., daily at 7 PM).
-
An event (e.g., alert firing).
-
A manual start.
-
Confusion Buster 🚨
-
Runbook vs ARM Template
-
Runbook = operational tasks (runtime automation).
-
ARM Template = deploy infrastructure (build-time automation).
-
-
Automation Account vs DevOps Pipeline
-
Automation Account = manage infra operations (patching, VM lifecycle).
-
Pipeline = CI/CD for apps & infra deployment.
-
Exam trap: If question says “shut down VMs nightly,” answer is Runbook in Automation Account, not DevOps Pipeline.
Simple Example
A dev team runs VMs during working hours only:
-
They set up an Automation Account with a Runbook to stop VMs at 8 PM and start them at 8 AM.
-
Saves money by not running unused VMs overnight.
Exam Tip
-
“Automate VM start/stop schedules” → Automation Account Runbook.
-
“Patch VMs automatically” → Update Management with Automation Account.
-
“Cross-platform scripting for automation” → PowerShell/Python Runbooks.
-
“Run automation tasks on-prem” → Hybrid Runbook Worker.
What to Expect in the Exam
-
Direct Q: “Which service automates start/stop of VMs on schedule?” → Automation Account + Runbook.
-
Scenario: “Company wants to patch Windows/Linux VMs automatically.” → Automation Account Update Management.
-
Trick Q: “ARM Templates can be used for patching VMs monthly.” (False — that’s Runbooks).