Log Analytics is an Azure monitoring and data collection service that stores diagnostic and metric logs from Azure services, virtual machines, and on-premises servers. Kusto queries search the collected data, while query results can drive alerts. section 8.2.2
In Azure Automation, a workspace provides operational visibility into job executions, outputs, and errors. Adding the Automation solution also enables the workspace to support hybrid runbook workers. section 8.2.2 section 8.6
Connect Log Analytics to Azure Automation through this implementation sequence:
- Create an Azure Automation account and a Log Analytics workspace in a resource group. section 8.2.2 section 8.2.3
- Place linked resources in compatible regions; matching regions are generally required, with documented exceptions. section 8.2.3
- Add the Azure Automation solution to the workspace by using its workspace resource ID. section 8.2.3
- For hybrid execution, install the Microsoft Monitoring Agent, connect it to the workspace, and use the downloaded hybrid runbook worker components. section 8.2.2
- Forward automation logs to the workspace and create alerts for failed jobs or errors. section 8.2.2
Provisioning the workspace
Install the Az and Az.MonitoringSolutions modules, connect to the target subscription, create the workspace, then add the AzureAutomation solution with New-AzMonitorLogAnalyticsSolution. Use names that satisfy Azure resource rules and choose compatible locations before linking resources. section 8.2.3
Table 8.1 Supported regions for linked Automation accounts and Log Analytics workspaces (view table figure)
Use the supported-region table to validate the regional pairing between an Automation account and its Log Analytics workspace. section 8.2.3


