question

MikePalmer-1666 avatar image
0 Votes"
MikePalmer-1666 asked 35247258 edited

Need help with Graph API - Windows Protection State & Windows Update State reporting for all devices

Hi,

Trying to access the Graph API data for Windows Protection Status and Windows Update state as detailed in the API references below. The issue is I would like to report on all devices plus the documentation is confusing as it requires additional parameters which I don't know where to get them.

https://docs.microsoft.com/en-us/graph/api/managedtenants-windowsprotectionstate-get?view=graph-rest-beta&tabs=http
https://docs.microsoft.com/en-us/graph/api/intune-shared-windowsupdatestate-update?view=graph-rest-beta

How someone can help me please.

Regards

Mike

mem-intune-graph
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered MikePalmer-1666 commented

@MikePalmer-1666, May be we can go to Intune portal, click F12 and go to the location in Intune portal where we can get Windows Protection state & Windows Update state. And then check the log to see if we can get the additional parameter information we want:
118833-image.png


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (159.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MikePalmer-1666 avatar image
0 Votes"
MikePalmer-1666 answered Crystal-MSFT commented

Hi Crystal,

Thank-you for the information. I tried to take a closer look this morning but could not find a way to get the information out so far. I tried going to the Intune Reports section and running the report to get the output of all devices and the protection status. Of-course you need to generate the report first for that one and it didn't work for my Application ID.

What I didn't say in my initial post is my requirements includes reporting that data into Power BI therefore using custom code to return the data due to OAuth2. I know the AAD Application ID is correct and the data is available as the BI for Intune trial Power BI reports can get all the data from the MS Graph so I know it is possible.

Mike

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MikePalmer-1666, From your description, it seems we are querying the report under Microsoft Defender Antivirus. As I didn't have the Microsoft Defender with endpoint subscription. I can't get the report under it. The only information I can find when I click the report is that it is sending Get request to "https://graph.microsoft.com/beta/deviceManagement/reports/cachedReportConfigurations(related report name)".

After researching, I find the following articles:. Hope it can give some clue to you.
https://docs.microsoft.com/en-us/graph/api/intune-reporting-devicemanagementcachedreportconfiguration-get?view=graph-rest-beta
https://docs.microsoft.com/en-us/mem/intune/fundamentals/reports-export-graph-available-reports#unhealthydefenderagents-and-defenderagents-reports

For our issue, it is a bit complex. we suggest to open premier case to see if we can get more help. Here is a link which list how to open a Premier case:
https://docs.microsoft.com/en-us/mem/get-support#the-support-experience

@Everyone, If anyone have faced the same issue before, I appreciate your help to sharing your idea here. Thanks for the help in advance.

0 Votes 0 ·