Skip to main content

How to Enroll a Linux Device in Intune

This service is in a pilot. 

  • Please note: This page is intended for Entra ID/Intune pilot participants only.
  • What’s next: A phased rollout is tentatively scheduled for late 2026/early 2027. More details will be announced soon through University IT news.

This guide provides installation and enrollment instructions for Microsoft Edge and Microsoft Intune on Linux systems. 

These instructions have been validated on Ubuntu 24.04.3 LTS and Red Hat Enterprise Linux (RHEL) 9.6. For additional information please refer to Enroll a Linux device in Intune - Microsoft Intune.

Prerequisite: Set up Authenticator

You'll need to set up your new Microsoft login using the Authenticator app on your mobile phone. This is a required first step. If you haven't already done so, follow the setup instructions for iOS or Android.

Before you begin

  • Backup your data: No issues are expected, but it's always a good idea to back up important data.
  • Network connection: A reliable Wi-Fi network or wired connection will help ensure your enrollment goes smoothly.
  • Save your work: Please ensure all your work is saved and applications are closed before starting the process.

Ubuntu installation instructions

  1. Update system and install prerequisites.

    sudo apt update
    sudo apt install curl software-properties-common apt-transport-https -y
  2. Add Microsoft GPG key

    curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg
  3. Add Microsoft Edge repository.

    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" | sudo tee /etc/apt/sources.list.d/microsoft-edge.list 
  4. Add Microsoft Linux repository.

    sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/$(lsb_release -rs)/prod $(lsb_release -cs) main" >> /etc/apt/sources.list.d/microsoft-ubuntu-$(lsb_release -cs)-prod.list'
  5. Install Microsoft Edge and Intune Portal.

    sudo apt update
    sudo apt install microsoft-edge-stable intune-portal -y
  6. Reboot your system to continue the installation, follow the device registration instructions below.

Red Hat Enterprise Linux (RHEL) installation instructions

  1. Import Microsoft GPG key.

    ssudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    
  2. Add Microsoft Edge repository.

    sudo tee /etc/yum.repos.d/microsoft-edge.repo > /dev/null <<'EOF' [microsoft-edge] name=Microsoft Edge baseurl=https://packages.microsoft.com/yumrepos/edge enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc EOF
  3. Add RHEL 9 repository.

    sudo dnf config-manager --add-repo https://packages.microsoft.com/yumrepos/microsoft-rhel9.0-prod
  4. Install Microsoft Edge and Intune Portal.

    sudo dnf install microsoft-edge-stable intune-portal -y
  5. Reboot your system to continue the installation, follow the device registration instructions below.

Device registration instructions

  1. Launch Intune portal by opening a terminal and running the following command:

    intune-portal
  2. Select Sign in from the Intune Portal interface.
  3. In the new window that opens, enter your email as <sunetid>@stanford.edu
  4. Follow the prompts to complete authentication through Microsoft.
  5. After completing authentication, select Register. This will return you to the original Intune Portal window.
    register your device
     
  6. After returning to the original window, select Begin.
    click begin
     
  7. This will take you to the page that calculates and displays your current compliance status.
    complete registration
  8. Test your enrollment by opening Microsoft Edge and attempting to sign in to https://outlook.com.
Last modified