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
Update system and install prerequisites.
sudo apt update sudo apt install curl software-properties-common apt-transport-https -y
Add Microsoft GPG key
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg
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
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'
Install Microsoft Edge and Intune Portal.
sudo apt update sudo apt install microsoft-edge-stable intune-portal -y
- Reboot your system to continue the installation, follow the device registration instructions below.
Red Hat Enterprise Linux (RHEL) installation instructions
Import Microsoft GPG key.
ssudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
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
Add RHEL 9 repository.
sudo dnf config-manager --add-repo https://packages.microsoft.com/yumrepos/microsoft-rhel9.0-prod
Install Microsoft Edge and Intune Portal.
sudo dnf install microsoft-edge-stable intune-portal -y
- Reboot your system to continue the installation, follow the device registration instructions below.
Device registration instructions
Launch Intune portal by opening a terminal and running the following command:
intune-portal
- Select Sign in from the Intune Portal interface.
- In the new window that opens, enter your email as <sunetid>@stanford.edu
- Follow the prompts to complete authentication through Microsoft.
- After completing authentication, select Register. This will return you to the original Intune Portal window.

- After returning to the original window, select Begin.

- This will take you to the page that calculates and displays your current compliance status.

- Test your enrollment by opening Microsoft Edge and attempting to sign in to https://outlook.com.
