Manage hybrid IT environments using Azure Arc
In this guide I’ll show you how to install the Azure Arc agent on Windows Server using the Azure Portal onboarding flow and PowerShell scripts. You’ll also learn about the Azure Connected Machine Agent (CMA), tray icon visibility, proxy configurations, and advanced troubleshooting techniques.
For those managing hybrid environments with Linux, don’t miss my complementary article on Installing Azure Arc Agent on Linux to achieve a unified management strategy.
Azure Arc is revolutionizing hybrid infrastructure management, offering a unified solution to govern, monitor, and secure resources across on-premises, cloud, and edge environments, across all your different deployment types. With Azure Arc-enabled servers, IT professionals can treat Windows Server machines as Azure-native resources, benefiting from tools like Azure Monitor, Azure Policy, and centralized automation, all while reducing management complexity.
Managing hybrid infrastructures with siloed tools often results in inefficiencies and increased complexity. Azure Arc solves this by centralizing server management within the Azure Resource Manager (ARM) deployment framework. Here are the key benefits of Azure Arc for Windows Server:
Azure Arc supports both Windows Server and Linux endpoints, making it ideal for diverse IT environments. For this guide, the focus is on Windows Server. Stay tuned for an upcoming guide on Linux configurations.
Before onboarding a Windows Server machine to Azure Arc, ensure the following prerequisites are met.
Azure Arc supports Windows Server 2012 R2 or later, including Windows Server 2025.
https://*.azure.com | https://*.microsoft.com | https://*.windows.net |
http://<proxyURL>:<proxyport>Most importantly, ponder whether to use the Azure public endpoint or (better) a private endpoint to communicate with the host off-Internet through a virtual private network (VPN) or ExpressRoute circuit.
Use an account with Local Administrator privileges to install the Connected Machine Agent.
Microsoft simplifies onboarding with the Azure Arc Portal, which offers several options:
| Onboarding: | Method: |
| Add a Single Server | Use a custom-generated installation script |
| Add Multiple Servers | Automate onboarding with service principals |
| Add Windows Server with Installer | Use an interactive step-by-step installer |
| Add Servers from AWS | Onboard Amazon EC2 instances using an AWS connector |
| Add Servers from Update Management | Connect servers already managed by Azure Update Management |
The Azure Connected Machine Agent (CMA) enables communication between your server and Azure.
./OnboardingScript.ps1
The script performs the following tasks:
After installation, check for the Azure Arc system tray icon on your Windows Server. This icon indicates that the agent is running and connected.
To view the three Windows services installed by the Connected Machine Agent, run the following PowerShell command:
PS C:>Get-Service -Name himds, GCArcService, ExtensionService
Status Name DisplayName
------ ---- -----------
Running ExtensionService Guest Configuration Extension Service
Running GCArcService Guest Configuration Arc Service
Running himds Azure Hybrid Instance Metadata Service
Once the script completes:
Spend time browsing the detailed inventory Azure Arc provides for your Windows Server. As your server evolves (new roles, new hardware), those additional management capabilities light up transparently thanks to the Connected Machine Agent and the Azure Monitor agent.
For environments with many servers, automate onboarding using PowerShell.
Use the Connect-AzConnectedMachine cmdlet to register servers:
Connect-AzConnectedMachine -ResourceGroupName ResourceGroup -Location Region
This cmdlet:
Azure Monitor integrates seamlessly with Azure Arc to provide advanced telemetry.
With Azure Monitor, IT teams can:
net stop himds && net start himds
Ensuring compliance in Azure Arc-enabled servers is crucial for maintaining governance across hybrid environments. Azure Policy allows you to monitor, enforce, and remediate compliance requirements at scale. Using predefined or custom initiatives, you can assess compliance status, as shown in Figure 1, where all applied policies are fully compliant.
Azure Policy integrates seamlessly with Arc, providing visibility into non-compliant resources and enabling automated remediation for continuous compliance across your environment. This approach ensures your servers remain secure and aligned with organizational standards.
Azure Arc provides a comprehensive solution for hybrid IT management, offering:
With support for both Windows Server and Linux, Azure Arc empowers organizations to streamline operations and focus on innovation.
Take control of your hybrid environment today. Onboard your Windows Server machine to Azure Arc by following this guide. For more advanced scenarios and insights, explore my article Azure Arc: Monitoring and Securing Hybrid Environments. Stay tuned for our next article focusing on transforming Linux endpoints across hybrid cloud & multi cloud environments into Arc-enabled servers.