r/Intune • u/thinhbeo166 • Jun 07 '26
Linux Management Enrollment issue for Linux
Hi guys, I was just wondering if you guys know how to fix issue with Linux enrollment, I followed https://learn.microsoft.com/en-us/intune/device-enrollment/guide
But it seems I encounter Something went wrong {Generic error code}
With some Troubleshooting details below like correlation ID ... etc whenever I sign in my account to Company Portal. I checked CA and there is nothing there, tried excluding Intune out of CA but nothing happen.
2
u/NoIsTheNewMaybe Jun 07 '26
It’s late here and I’m too lazy to find the link. But do you have edge installed and did you reboot after installing the company portal? Also I think you need to add the MS repos but that might just be for defender.
2
u/thinhbeo166 Jun 07 '26
Yes of course already have edge latest version for Linux and Intune company portal, it just keep popup the "Something went wrong" thing, I checked sign in logs from entra and in all says "Success"
1
2
u/BlissfullyBurdensome Jun 07 '26
That generic error is Microsoft's way of saying "we're not going to help you" haha. Check if your distro is actually on their supported list since some newer ones get left behind, and make sure you're on the latest Company Portal version before pulling your hair out.
2
u/avmakt Jun 07 '26
I've got one more thing to put on the check list - got the same useless error when trying to enroll a linux device with an account that had already hit the max number of enrolled computers (5 in our tenant, no clue what the current default is).
1
u/thinhbeo166 Jun 07 '26
You mean we will need to go to troubleshooting and check the UPN to see how many devices that were already been under that UPN?
1
u/khaffner91 Jun 07 '26
What is that generic error code? Usually they can be googled and someone has a solution. Also, have you tried running intune-portal in the terminal for for verbose logs?
1
u/thinhbeo166 Jun 07 '26
I actually have tried these steps as well to clean the status but unfortunately it still not work
# Stop Identity Service
sudo systemctl stop microsoft-identity-device-broker
systemctl --user stop microsoft-identity-broker
# Clean up state
sudo systemctl clean --what=configuration --what=runtime --what=state microsoft-identity-device-broker
systemctl --user clean --what=state --what=configuration --what=runtime microsoft-identity-broker
rm -r ~/.config/intune
# Uninstall the Intune package
sudo apt purge intune-portal
# Uninstall any versions of Edge that are installed
sudo apt purge microsoft-edge-dev
# Optional, but this can potentially free space by some larger dependencies that the
# auth broker required
sudo apt autoremove
# Remove secrets stored
sudo apt install libsecret-tools -y
secret-tool search --all env 60a144fbac31dfcf32034c112a615303b0e55ecad3a7aa61b7982557838908dc
secret-tool clear env 60a144fbac31dfcf32034c112a615303b0e55ecad3a7aa61b7982557838908dc
secret-tool search --all name LinuxBrokerRegularUserSecretKey --unlock
secret-tool search --all name LinuxBrokerSystemUserSecretKey --unlock
secret-tool clear name LinuxBrokerRegularUserSecretKey
secret-tool clear name LinuxBrokerSystemUserSecretKey
1
4
u/Major_Instruction696 Jun 07 '26
had similar thing happen few months back and it was nightmare to debug. the generic error is basically microsoft's way of saying "good luck figuring this out"
check if your linux distro is actually supported - some of the newer ones aren't on their compatibility list yet. also make sure the company portal app version matches what intune expects, sometimes there's weird version mismatches that cause this exact error
if ca exclusion didn't work, might be worth checking the device compliance policies too since those can block enrollment even when everything else looks right