Enroll a Linux Device in Intune [Step-by-Step]

Microsoft announced the general availability of Linux desktop management in Microsoft Intune in October 2022. You can now manage Linux devices alongside Windows, Mac, iOS, and Android.

If you Enroll a Linux device into Intune, it will be considered a corporate-owned device. Currently, Personally owned Linux device management, also called MAM for Linux, is not supported.

Let’s learn about the steps to enroll a Linux device in Intune.

Prerequisites

  • Ubuntu Desktop 22.04 or 20.04 LTS
  • Microsoft Edge Browser
  • Microsoft Intune App

Step 1 – Download Ubuntu Desktop

The First step is to download and install the Ubuntu desktop. You can download it using the link: Download Ubuntu Desktop. Ensure that you download only the compatible version of Ubuntu as specified in the Prerequisites section.

Once you’ve downloaded the Ubuntu desktop 22.04 or 20.04 LTS version, proceed with the installation on your device. Note that this blog post will not cover Ubuntu OS installation steps; instead, it will focus on enrolling it into Intune.

Step 2 – Download and Install Microsoft Edge for Linux

Once logged on to your Ubuntu desktop, follow the steps below to download and Install Microsoft Edge for Linux.

  • Open the Firefox browser on your Ubuntu desktop.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux
  • Enter the following link in the address bar of the Firefox browser: https://www.microsoft.com/edge and click on “Download Edge“. This action will download a Microsoft Edge .deb file to your device—Double-click on the file to launch the installer.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux
  • Once you open the installer file, you will find two options: Archive Manager and Software Install. Select Software Install and click on Open.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux
  • Click on the Install button to install Microsoft Edge. If it prompts an administrator password, provide it and install it.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux
  • Microsoft Edge has been Installed successfully.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux
  • To verify the installation of the Edge application, click on the Dock App launcher icon and search for Edge. You should find the application listed.
Download and Install Microsoft Edge for Linux
Download and Install Microsoft Edge for Linux

Step 3 – Install Microsoft Intune App

Enrollment requires a Linux version of the Microsoft Intune app. This app registers your device with your organization and enrolls it with Intune. Follow the steps below to install the Microsoft Intune app on Linux.

  1. Open the Terminal App.
Install Microsoft Intune App
Install Microsoft Intune App
  1. Execute all of the following commands to install the Intune App and its dependencies.

Install Curl

sudo apt install curl gpg
Install Microsoft Intune App
Install Microsoft Intune App

Install the Microsoft Package Signing key

The commands for installing the Microsoft Package Signing key are slightly different for Ubuntu 20.04 and 22.04. Therefore, execute the commands corresponding to the version of Ubuntu installed on your device. To check and confirm the Ubuntu version from the Terminal App, execute lsb_release -a.

For Ubuntu 20.04

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/20.04/prod focal main" > /etc/apt/sources.list.d/microsoft-ubuntu-focal-prod.list'
sudo rm microsoft.gpg

For Ubuntu 22.04

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/ 
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/22.04/prod jammy main" > /etc/apt/sources.list.d/microsoft-ubuntu-jammy-prod.list' 
sudo rm microsoft.gpg
Install Microsoft Intune App
Install Microsoft Intune App

Install the Microsoft Intune App

The final step is to install the Microsoft Intune App by executing the following commands.

Commands to Install Microsoft Intune App

sudo apt update

sudo apt install intune-portal
Install Microsoft Intune App
Install Microsoft Intune App
Install Microsoft Intune App
Install Microsoft Intune App

Verify Intune App Installation

To confirm if the Intune App has been installed successfully, Click on the Dock App launcher Icon and search for the Intune App. The result will show a Microsoft Intune App Icon.

Verify Intune App Installation
Verify Intune App Installation

Step 4 – Reboot your Device

Reboot your Ubuntu device before starting the Intune enrollment process.

Step 5 – Enroll Linux Device in Intune

  • Open the Microsoft Intune app and click on Sign in.
Enroll Linux Device in Intune
Enroll Linux Device in Intune
  • Enter your Email address and Password, then click Sign in.
Enroll Linux Device in Intune
Enroll Linux Device in Intune
  • Click on Register.
Enroll Linux Device in Intune
Enroll Linux Device in Intune
  • Click on Begin
Enroll Linux Device in Intune
Enroll Linux Device in Intune
  • Click on Begin.
Enroll Linux Device in Intune
Enroll Linux Device in Intune
  • The device is now registered and also shows a compliant status.
Enroll Linux Device in Intune
Enroll Linux Device in Intune

Verify Linux Device registration in Intune

After the device has been registered with Intune, you can follow the steps below to verify its status from the Intune admin center.

  • Sign in to the Intune admin center.
  • Go to Devices > Linux > Linux devices
  • You will find your registered device listed along with its Compliance status.
Verify Linux Device registration on Intune
Verify Linux Device registration on Intune

2 thoughts on “Enroll a Linux Device in Intune [Step-by-Step]”

Leave a Comment