Forum Discussion

Faiza Qadri's avatar
Faiza Qadri
Iron Contributor
Nov 04, 2019

How to get All Azure AD devices with the column values from the Azure GUI app?

Trying to extract a list (csv or excel) file for all Azure AD devices with the properties displayed on the Azure Portal (see attached picture)

7 Replies

  • Faiza Qadri 

     

    Are you familiar with Powershell?   Simple option is to run the following in powershell to export all your list

     

    #Connect into Azure AD

    Connect-Azure AD 

    #Download all Azure AD Device 

    Get-AzureADDevice -All $true | export-csv AADDevice.csv

     

    -Sankara

     

    • Yazo97's avatar
      Yazo97
      Copper Contributor
      Nice! Thanks for this
      • jerome317's avatar
        jerome317
        Brass Contributor

        Since you seem familiar, I'll refer you to the documentation: https://docs.microsoft.com/en-us/powershell/module/azuread/?view=azureadps-2.0#devices

        What I like to do when creating a report like this is piping Format-List (FL for short) so I can see what's all the information available to me.

        To start: Get-AzureADDevice -Searchstring "YourDeviceName" | Format-List
        You can them combine/pipe with others to find what you need.


        It looks like there is a specific command to find the owner. If you can't find what you need, you might need to use Graph API to retrieve those. https://docs.microsoft.com/en-us/graph/api/resources/intune-graph-overview?view=graph-rest-1.0

Resources