Azure Arc for servers is a tool that can be used to add on-prem physical / virtual servers or servers running in other cloud providers to Azure, this allow these servers to be centrally organised and to be connected to Azure services like Azure policy or log analytics.
Azure Arc for servers is in public preview, so this should not be used on production system until there is a full release version. Currently the only support OS version’s are below.
- Windows Server 2012 R2 and newer
- Ubuntu 16.04 and 18.04
If there is a content filter or proxy, the URL’s in the below link will need to be white-listed all traffic will go over HTTPS (Port 443)
To add a server to Azure Arc, logon to the Azure portal.
Go to All services > Machines – Azure Arc
Click on create machine – Azure ArcThere are two options add machines using interactive script or add machines at scale. In this post we will be using the scripted method.
Select the subscription, resource group and region. Once selecting operating system we can chose between Windows or Linux. Windows will create a PowerShell script and Linux will create a Linux .sh script.
As this feature is currently preview it will ask you to register before completing the download. Once the registration is completed, we can either copy the command or click download to get a copy of the PowerShell script. Below is how the script should look the only difference would be the Azure specific setting like resource group, tenantid…Once the script has run and the connect command has completed it will request that we connect to the device login site https://Microsoft.com/devicelogin and put in the authentication code.
Once completed go back to the PowerShell windows that the scirpt was run from and we should see successfully onboarded to Azure resource. After a few minutes the device should show in Azure Arc. We can now apply Azure policies and integrate with Azure log analytics.