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

Microsoft announced general availability of Linux desktop management from Intune in October 2022. You can now also manage Linux devices similar to 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.

Prerequisites

For a complete list of System requirements, please use this link: System requirements.

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

Step 1: Download and Install Ubuntu Desktop

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, we will focus on enrolling it into Intune.

Step 2: Download and Install Microsoft Edge for Linux

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

  • Open the Firefox browser on your Ubuntu desktop.
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.
click on Download Edge
  • Once you open the installer file, you will find two options: Archive Manager and Software Install. Select Software Install and click on Open.
Use Software Install package manager
  • Click on the Install button to install Microsoft Edge. If it prompts an administrator password, provide it and install it.
Click on Install
  • Microsoft Edge has been installed successfully.
Edge is now installed on Ubuntu
  • 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.
Search for edge in dock app launcher

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.
Open Terminal App
  1. Execute all of the following commands to install the Intune App and its dependencies.

Install Curl

sudo apt install curl gpg
Install Curl

Install 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 Package Signing key

Install Microsoft Intune App

The final step is to install 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 on Ubuntu - Step 1
Install Microsoft Intune App on Ubuntu - Step 2

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.

Search for Intune App

Step 4: Reboot your Device

Reboot your Ubuntu device before starting the Intune enrollment process.

Step 5: Enroll Linux Device in Intune

  • Open Intune app and click on Sign in.
Click on Sign in button on Intune Agent
  • Enter your Email address and Password, then click Sign in.
Enter your credentials
  • Click on Register.
Click Register
  • Click on Begin
Click Begin
  • Click on Begin.
Click on Begin once again
  • The device is now registered and also shows a compliant status.
Linux Ubuntu is now registered with Intune

Verify Linux Device Registration in Intune

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

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

Read Next

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

Leave a Comment