A common architecture uses Azure Monitor for detection and Azure Automation for bounded operational response. An action group starts a runbook, the runbook validates the target and performs an approved action, and job diagnostics flow to a Log Analytics workspace. Use managed identities with narrowly scoped permissions, and correlate alert identifiers with job output so operators can trace each automated change.
For private or on-premises workloads, place extension-based Hybrid Runbook Workers on Azure virtual machines or Azure Arc-enabled servers with access to the target network. Retrieve necessary secrets from Key Vault and write reports or durable checkpoints to Blob Storage. Verify DNS, routing, firewall rules, and data-plane authorization separately; permission to manage a resource does not necessarily permit access to its contents.
When an operation requires approvals, ticket routing, or multiple application connectors, use Logic Apps as the outer workflow and invoke Automation for script-based infrastructure tasks. Track the asynchronous job to completion rather than treating successful job submission as successful execution. Across these patterns, design for duplicate requests, partial failure, bounded retries, and explicit escalation when automated recovery fails.
Azure Monitor
Use an Azure Monitor action group to start an Automation runbook in response to an alert, and export Automation job logs and streams to a Log Analytics workspace. For example, an alert can trigger a runbook that collects diagnostics and restarts a specifically authorized resource after checking its current state. Add alerts for failed or suspended jobs so remediation failures are visible.
Azure Key Vault
Retrieve secrets or certificates at runtime using an identity authorized for the required Key Vault operations. For example, a runbook can fetch an external system's API credential immediately before generating an inventory report. For a private vault endpoint, select an execution environment with the necessary network access and DNS resolution.
Virtual Machines
Manage virtual machine lifecycle operations through Azure APIs, or host Hybrid Runbook Workers on supported Azure virtual machines. For example, schedule a runbook to deallocate development VMs selected by tags while excluding machines marked for continuous operation. When using worker VMs, manage their operating systems, installed dependencies, and availability separately from the Automation account.
Azure Arc
Use Azure Arc-enabled servers as hosts for extension-based Hybrid Runbook Workers outside Azure. For example, a worker on an on-premises server can run a maintenance script against an internal SQL Server endpoint that cloud jobs cannot reach. Configure the worker's permissions and outbound connectivity explicitly; Arc registration alone does not grant access to the target application.
Logic Apps
Use the Azure Automation connector in a Logic Apps workflow to create runbook jobs and retrieve their status or output. For example, a workflow can obtain an approval, start a provisioning runbook, wait for completion, and send the result to an operations channel. Keep business routing and approvals in the workflow while placing script-based infrastructure operations in the runbook.
Azure Storage
Read input data and write durable reports or execution artifacts using Azure Storage APIs or SDKs. For example, a nightly runbook can export resource inventory to a dated blob using a managed identity with a scoped data-plane role. Use durable storage for checkpoints when a workflow must resume across separate jobs rather than relying on local sandbox files.
Azure Advisor
An Automation runbook can respond to a new Azure Advisor recommendation when an Advisor alert invokes it through an Azure Monitor action group. For example, the runbook can collect configuration details for the affected resource before an operator reviews the recommendation.
Azure Automanage
Azure Automation supplied Update Management and Change Tracking and Inventory for legacy Azure Automanage machine best-practices profiles. Onboarding a machine with one of those profiles could enroll it in those Automation features without configuring each one separately.
Azure Blob Storage
Azure Automation can archive runbook job logs and job streams in Azure Blob Storage through diagnostic settings. Change Tracking and Inventory can also use Blob Storage to retain file contents for comparison when a tracked file changes.
Azure DevOps
Azure Automation can synchronize runbooks from an Azure Repos Git repository through its source control integration. A team can review runbook changes in pull requests and then synchronize the approved branch to its Automation account.
Azure DNS
Azure Automation private endpoints can use an Azure Private DNS zone to resolve Automation service names to private IP addresses. This lets Hybrid Runbook Workers on linked virtual networks reach the Automation account without resolving its public endpoints.
Azure Functions
An Azure function can start an Azure Automation runbook through the runbook's webhook. The function can validate and transform an incoming event before handing off a longer-running operational task to Automation.
Azure Infrastructure Resiliency Manager
Azure Automation runbooks can supply custom fault logic for Availability Zone Down Drills in Azure Infrastructure Resiliency Manager. This lets a drill exercise a dependency that isn't covered by a built-in fault action.
Azure Lighthouse
Azure Automation accounts in subscriptions or resource groups delegated through Azure Lighthouse can be managed from the service provider's own tenant. With the delegated permissions, an operator can maintain runbooks and inspect job results without signing in to each customer's tenant.
Azure Policy
Azure Policy has built-in definitions for auditing or enforcing settings on Azure Automation accounts, such as restricting public network access. Policies can also help onboard eligible machines to Automation's Change Tracking and Inventory.
Azure portal
The Azure portal provides dedicated Azure Automation pages for editing, testing, publishing, and scheduling runbooks. Operators can also inspect job status and output and configure assets such as credentials and variables.
Azure Private Link
Azure Automation supports private endpoints for webhook traffic and for Hybrid Runbook Worker and State Configuration connections. A Hybrid Runbook Worker can use a private endpoint to communicate with its Automation account without going through the public endpoint.
Azure Resource Manager
Azure Resource Manager provisions Automation accounts, runbooks, schedules, and other Automation resources through the Microsoft.Automation resource provider. Automation runbooks can also submit Resource Manager template deployments and perform configuration after deployment.
Azure role-based access control (Azure RBAC)
Azure Automation provides built-in roles for delegating runbook and job operations. For example, an administrator can let an operator start a particular runbook and inspect its jobs without granting permission to edit the runbook.
Azure Service Health
A Service Health alert can start an Azure Automation runbook through an Azure Monitor action group. The runbook can collect diagnostic details or notify the team responsible for the affected workload.
Azure Site Recovery
Azure Site Recovery recovery plans can start Azure Automation runbooks before or after a recovery group fails over. A runbook can, for example, verify a recovered database before the plan brings the application tier online.
Azure Virtual Desktop
Azure Virtual Desktop's runbook-based scaling tool uses Azure Automation to start and stop session-host VMs based on schedules and session load. This configuration is separate from Azure Virtual Desktop's built-in autoscale feature.
Azure Virtual Machine Scale Sets
Azure Automation State Configuration can manage Windows scale-set instances enrolled through the PowerShell DSC extension. As new instances are provisioned, the extension can register them so they receive the same configuration as existing instances.
Azure Virtual Network
Azure Automation can run jobs on a Hybrid Runbook Worker inside an Azure virtual network so the jobs can reach resources that aren't publicly accessible. The virtual network can also host a private endpoint for the Automation account.
Event Grid
An Event Grid subscription can deliver matching events to an Azure Automation runbook webhook after the subscription endpoint is validated. The runbook receives the event payload and can act on it, such as checking configuration after a resource changes.
Event Hubs
Azure Automation diagnostic settings can stream runbook job logs and job streams to Event Hubs. A downstream consumer can use that stream to process job failures or send runbook telemetry to an external monitoring system.
Linux Virtual Machines
An Azure Linux VM can host the extension-based Hybrid Runbook Worker for Azure Automation. Runbooks assigned to the worker group can execute on the VM and reach Linux hosts or private endpoints available from its network.
Microsoft Cost Management
A Cost Management budget can invoke an Azure Automation runbook through an Azure Monitor action group when a spending threshold is reached. The runbook can identify nonproduction resources that are eligible for shutdown and notify their owners.
Microsoft Defender for Cloud
Microsoft Defender for Cloud can assess Azure Automation accounts against security policies and surface configuration findings. For example, a policy-backed assessment can flag Automation accounts that allow public network access.
Microsoft Entra ID (formerly Azure AD)
Azure Automation can use a system-assigned or user-assigned managed identity in Microsoft Entra ID. Runbooks can authenticate as that identity to manage authorized Azure resources without storing a password or client secret.
Microsoft Sentinel
A Microsoft Sentinel playbook can use the Azure Automation connector to start a runbook and check its job status. An incident-response playbook can use a runbook to collect diagnostics from a machine reachable by a Hybrid Runbook Worker.
Update management center
Azure Update Manager can trigger Azure Automation runbooks through Event Grid and runbook webhooks for pre- and post-maintenance events. For example, a pre-maintenance runbook can start VMs that must be online for patching, and a post-maintenance runbook can restore their previous power state.