EA - Azure Device ID hit and miss getting the Device ID into Jamf

aburrow007
New Contributor II

For troubleshooting, I'm trying to gather the Device ID of devices that have been registered with Azure/Entra via the Company Portal.  I came across this particular post https://www.macbuddy.info/blog/lets-get-conditional-aad-id-ea which has the EA I'm trying to use.  I've modified it slightly to give a result if there's no Device ID on the Mac.  What I'm seeing though using either the original or modified script is what appears to be an intermittent issue where I will run 'recon' on my test machine, get the Device ID but then running 'recon' again will remove the Device ID.  Running 'recon' again will sometimes bring it back sometimes not.

I don't think it's a permissions issue as I should think it wouldn't work at all.

Again I don't think it's the 'security find-certificate' issue line in the script as it does work sometimes.

I'm at a loss to explain why it's happening.

1 REPLY 1

AL1992
New Contributor

I have exactly same issue with this EA.