How To MECMPractical IT. Shared.

The knowledge base

Linux in Microsoft Intune Explained: Enrollment, Compliance and Conditional Access

How Intune manages Linux: enrollment, supported Ubuntu and Red Hat versions, compliance, Conditional Access through Edge, scripts and Defender.

Linux/Explainer·Reading time: 4 MIN·Video length: 7 MIN

Also available in: Español · Português

Intune manages Windows PCs, Macs, iPhones and Android phones, and Linux desktops can enroll too. They’re easy to forget, but developers, engineers and data teams often work on Linux, and those machines still open company email and files. Intune handles them with one app, one sign-in and a short list of rules.

One way in

Most platforms have several enrollment methods. Linux has one: the user installs the Microsoft Intune app, signs in with their work account, and the app enrolls the device. Microsoft’s enrollment guide lists it for personal and company-owned Linux devices.

  • No bulk enrollment and no userless shared devices: each device enrolls through the app, with a person signing in.
  • The device is registered in Microsoft Entra ID (not joined), and Intune creates a device record.

What you need first (admin side)

  • MDM authority set to Intune.
  • Licenses: each user needs at least an Intune Plan 1 license. Check the Intune licensing page on Microsoft Learn to see what your plan includes.
  • Role: Policy and Profile Manager is the least-privileged built-in role for enrollment tasks.
  • User and device groups ready.
  • Nothing to switch on: Linux enrollment is enabled automatically. Enrolled devices show up under Devices > By platform > Linux.

What the device needs

Requirement Detail
Distributions Ubuntu Desktop 24.04 and 26.04 LTS; Red Hat Enterprise Linux 9 and 10
Hardware x86 64-bit, physical or an Azure or Hyper-V virtual machine
Not supported Ubuntu Server; Ubuntu in WSL on Windows
Desktop GNOME (included in Ubuntu Desktop)
Apps Microsoft Edge 102 or later; the Microsoft Intune app from Microsoft’s package repository (needs a reboot)

Microsoft recommends turning on disk encryption when you install the OS, because it can be hard to add later. For a full install walkthrough on Ubuntu, see How to enroll Ubuntu 24.04 in Microsoft Intune.

Enrolling, from the user’s side

  1. Open the Microsoft Intune app and sign in with the work or school account.
  2. Read the screens that explain what’s about to happen, then select Next.
  3. The app enrolls the device, which takes a few minutes. If something doesn’t meet the company’s rules, like the password, the app says what to change.
  4. A confirmation appears. Sign in to Microsoft Edge with the same work account to reach company sites.

Behind the scenes, the device registered in Entra ID, Intune created its record, and the first compliance check started.

Compliance

Compliance is the heart of Linux management in Intune. Linux compliance policies come from the settings catalog and are assigned to device groups, not user groups. There are four categories:

  • Allowed distributions: which distros and which minimum and maximum versions.
  • Device encryption: require encrypted disks.
  • Password policy: minimum length, and how many lowercase, uppercase, digits and symbols.
  • Custom compliance: your own check, a discovery script plus a JSON rules file.

A device that falls short is marked noncompliant, and you can email the user. In the Intune app they see Compliant, Checking status or Not compliant, with the issue and how to fix it. After a fix, it can take up to eight hours to show as compliant again.

Conditional Access through Edge

Compliance marks the device; Conditional Access turns that mark into access. Intune checks the device, Microsoft Entra ID decides who gets in, and Microsoft Edge is the browser that opens Microsoft 365 web apps.

Picture a user opening Teams in Edge on a Linux laptop that isn’t enrolled: the sign-in is blocked and they’re asked to enroll first. Once the device is enrolled and compliant, the same sign-in goes through. Conditional Access for Linux needs a device compliance policy, otherwise there’s nothing to check.

Scripts, Defender and device IDs

  • Bash scripts: upload a shell script and run it as the signed-in user (default) or as root, where the user may need to approve the first run. By default it runs every 15 minutes with no retries. Microsoft notes scripts aren’t the place for sensitive information.
  • Microsoft Defender for Endpoint on Linux can take antivirus, exclusion and EDR policies from Intune endpoint security.
  • Device IDs: when the Intune app moves to the newer identity broker (version 2.0.2 or later), devices register again and get new Intune and Entra device IDs. Review groups, filters and assignments that use those IDs.

What Linux doesn’t get, and leaving

  • No bulk enrollment, no device enrollment manager account, no userless or kiosk mode.
  • On Learn, Linux isn’t listed for enrollment restrictions or device limits, settings catalog configuration profiles, or remote actions like retire and wipe.
  • A device already managed by another MDM might enroll, but Microsoft hasn’t tested it.
  • Unenrolling happens on the device. On Ubuntu, remove and then purge the package, which deletes the local registration:
sudo apt remove intune-portal
sudo apt purge intune-portal

On Red Hat, remove it with sudo dnf remove intune-portal.

Recap

One method: the user enrolls through the Microsoft Intune app. Ubuntu Desktop or Red Hat, with GNOME and Edge. Compliance from the settings catalog, enforced with Conditional Access through Edge, plus Bash scripts when you need more.

Do you manage Linux desktops today, and with what? Tell me in the comments.

Comments

Comments are hosted on YouTube for Intune Linux Enrollment Explained: Ubuntu, Red Hat and Compliance

Have a question or something that worked for you? Leave a comment on the video.

Comment on YouTube

Loading comments from YouTube…

Open this video on YouTube

Keep learning