Finding a Serial Number from the Associated Azure AD Device

Damon Burro 1 Reputation point
2022-10-12T20:38:16.857+00:00

Occasionally I find a device in Azure (under a user > devices) that doesn't have S/N naming convention. It has a generic DESKTOP-name. If I knew the serial, I could search that in AutoPilot list, and then find the associated device. But I don't know how to do it the other way around.

Obviously there is some link between these two records (a secondary relationship?). Is there a way to get the S/N with a powershell search or some other spot?
Currently the only way to do this is to click through all the AutoPilot S/N's, pull up properties until I find the associated name. With thousands of devices, this is not feasible. See images below.

If I have the S/N, I can search it in AutoPilot, look at properties and find the Associated Azure AD device. But not the other way around.

I want to know how to take Azure AD device Name: DESKTOP-IMMKAOT to find the S/N. The image below show how the S/N 'knows' how to find the Azure Associated Device.
But I can't do the other way around.

249855-image.png

Microsoft Security | Microsoft Entra | Other
{count} votes

2 answers

Sort by: Most helpful
  1. David Borough 16 Reputation points
    2023-03-25T00:06:21.4233333+00:00

    We were provided this answer through StackExchange, and it works for AutoPilot devices that are described as in my post.

    Copy the Device ID from Azure Portal.

    However, we have one more conundrum -- which is for devices with the Blue icon (non-autopilot) that are also not Intune. Need to find a solution for that.

    In PowerShell, you can connect to AzureAd and do something like:

    Get-AzureADDevice -ObjectId "d1e9eee7-716d-4579-90f3-d6ac2182b873"

    But it does not provide a serial number. We need that.

    1 person found this answer helpful.

  2. Akshay-MSFT 17,956 Reputation points Microsoft Employee Moderator
    2022-10-13T04:51:24.39+00:00

    Hello @Damon Burro ,

    Thanks for posting your query. From your description I could understand that you are looking to find device serial number with device name. Here are the following ways you could do it from UI.

    • When device hash is uploaded then the object created in Azure AD with
      name==serial number of the device. (The device is not provisioned yet).

    249879-image.png

    • Once device is provisioned the serial number and name of the device could be sorted from MEM console by navigating to Devices -> Windows -> Windows Devices -> and sort the device with serial number or device name as in below example:

    249904-mem-picture.png

    Another way around is to have serial number in the device name (post device provisioning). This is possible by adding device name in deployment profile:

    249925-image.png

    Thanks,
    Akshay Kaushik

    Please "Accept the answer" and "upvote" if the information helped you. This will help us and others in the community as well. OR Kindly post your queries in comment box.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.