What VM Extensions Do
Azure VM Extensions are tools that add extra capabilities to virtual machines, including machines that are not actually hosted in Azure. These extensions let administrators bring cloud features like automation, security, and health monitoring to computers running in a customer's own data center or on other clouds. The extensions act like plugins that install on a VM and connect it to Azure services, so a server in a corporate office can behave almost like a real Azure virtual machine even though it physically sits elsewhere.
Installing the Hybrid Worker Extension
The Hybrid Worker Extension lets a regular VM run Azure Automation runbooks, which are scripts that automate repetitive tasks. To install it, an administrator first retrieves the automation account URL using an API call, then runs a PowerShell command to place the extension on the target machine. The command differs slightly depending on the operating system: Windows machines use the HybridWorkerForWindows extension type while Linux machines use HybridWorkerForLinux. Both commands require the resource group name, VM name, location, and settings that include authentication details. The extension can be set to automatically upgrade when Microsoft releases new versions, or administrators can disable that feature if they want full control over updates.
Network and Security Requirements
For the extension to communicate with Azure, the target machine must have the right network access. Outbound internet access through port 443 is required, which is the same port used for HTTPS web traffic. The firewall must allow connections to URLs ending in .azure-automation.net so the machine can reach the Azure Automation service. If the network uses a proxy server, the proxy settings must be configured on the VM before the extension installs, otherwise the connection will fail. These requirements apply whether the machine is an on-premises server or a VM hosted by another cloud provider.
Why Use Extension-Based Workers
The extension-based approach offers several advantages over older methods that required installing separate agents. First, it removes the need for the Log Analytics Agent, which simplifies the setup process. Second, because the extension integrates with Azure Resource Manager, administrators can manage groups of machines using the same tools they use for Azure VMs, applying policies and tracking resources at scale. Third, it works with Microsoft Entra ID for authentication, so administrators can control who can access the machines using the same identity system they already use for other Microsoft services. Finally, it creates a unified experience where Azure VMs and non-Azure machines (those enabled with Azure Arc) are managed through the same portal and can be treated identically in automation scripts.
Verifying the Deployment
After installation, administrators should confirm the extension is working correctly by checking two things. The first is that runbooks can be configured and executed directly on the target machine, which proves the Hybrid Worker is registered and ready to accept automation tasks. The second is that the extension shows a healthy status in Azure monitoring tools, which confirms the connection to Azure services is stable and the machine is reporting its health state properly.