VOOZH about

URL: https://thenewstack.io/tutorial-register-and-manage-linux-servers-with-azure-arc/

⇱ Tutorial: Register and Manage Linux Servers with Azure Arc - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-11-24 12:41:02
Tutorial: Register and Manage Linux Servers with Azure Arc
feature,tutorial,
Cloud Native Ecosystem / Cloud Services

Tutorial: Register and Manage Linux Servers with Azure Arc

In this tutorial, we explore the concept of Azure Arc enabled servers. Besides connecting an existing Ubuntu machine, we will also configure a policy to check all the servers’ compliance in a specific resource group.
Nov 24th, 2020 12:41pm by Janakiram MSV
👁 Featued image for: Tutorial: Register and Manage Linux Servers with Azure Arc
This post is the second of a four-part series this week exploring Microsoft Arc, and how it can be used as a control plane to manage services. Check back each day through Thursday for subsequent installments: (Part 1), (Part 3).

This article is the second part of the Azure Arc series, where we explore the concept of Azure Arc enabled servers. Besides connecting an existing Ubuntu machine, we will also configure a policy to check all the servers’ compliance in a specific resource group.

Azure Arc enabled servers can be managed by the Azure Resource Manager (ARM) control plane even if they are not running within Azure.

In the below screenshot, we see virtual machines running in Amazon EC2, Google Compute Engine, vSphere, and Azure VMs are registered with Azure Arc.

👁 Image

We can also apply a policy to check the compliance of these VMs. In this tutorial, we will perform an audit of all the VMs that use a password instead of an SSH key.

👁 Image

Two VMs deployed in vSphere and another VM running in Azure don’t use SSH keys, which the Azure Policy manager identified.

Prerequisites

  • An Ubuntu 18.04 server with outbound Internet access
  • An active Microsoft Azure subscription

Registering an Existing Ubuntu Server

From the Azure Portal, search for Servers – Azure Arc to launch the wizard.

👁 Image

You can register servers interactively or onboard multiple servers at scale. For this tutorial, select the first option of adding servers with an interactive script.

👁 Image

Make sure you meet the prerequisites before proceeding further.

👁 Image

In the next step, select your subscription, resource group, and a region in which Azure Arc is available. Choose Linux as the OS and move to the next step.

👁 Image

Populate the values of any of the suggested tags or create your own tags.

👁 Image

Finally, you will see the command to run in the Ubuntu server. Copy it and close the wizard.

👁 Image

SSH into your Ubuntu machine and paste the commands copied from the previous step.

👁 Image

Within a few minutes, you will notice the registered machine in the resource group.

Applying a Policy to Registered Servers

We will now apply a policy to find if any of the registered machines use a password instead of an SSH key.

Open the policy setting for the resource manager and click on assign policy.

👁 Image

From the available policy definitions, select Audit Linux machines that are not using SSH key for authentication.

👁 Image

Make sure you set the option Include Arc connected servers.

👁 Image

Accept the defaults in the next step to create the policy.

After a few minutes, the compliance dashboard will get updated to report the results from the audit.

👁 Image

Congratulations! You have successfully registered an external server with Azure Arc and ran a compliance test.

In the next part of this series, we will explore how to register Kubernetes clusters with Azure Arc and perform GitOps-based deployments. Stay tuned!

Janakiram MSV’s Webinar series, “Machine Intelligence and Modern Infrastructure (MI2)” offers informative and insightful sessions covering cutting-edge technologies. Sign up for the upcoming MI2 webinar at http://mi2.live.

Feature image via Pixabay.

TRENDING STORIES
Janakiram MSV (Jani) is a practicing architect, research analyst, and advisor to Silicon Valley startups. He focuses on the convergence of modern infrastructure powered by cloud-native technology and machine intelligence driven by generative AI. Before becoming an entrepreneur, he spent...
Read more from Janakiram MSV
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.