createDeviceLogCollectionRequest : bad request

DAMIEN VAN ROBAEYS 6 Reputation points MVP
2021-03-02T10:55:26.16+00:00

Hello,
When I try the action createDeviceLogCollectionRequest from graph explorer I have an errer bad request.
I use the below query:
https://graph.microsoft.com/beta/deviceManagement/managedDevices('e5bb60c1-be49-44d6-be9a-888a412621b5')/createDeviceLogCollectionRequest

This one sems correct, because when I run the action from the endpoint manager portal, F12 dev part gives me this URL with method POST.

However when I run it from graph explorer, I have an error.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,421 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. DAMIEN VAN ROBAEYS 6 Reputation points MVP
    2021-07-09T13:53:05.29+00:00

    Hello,
    I have been confimed by someone who has been in contact with a guy in MS that

    Running diagnostics from outside of the MEM console is in their backlog meaning it's not available out of the intune portal.

    Any chances that it will soon possible ?

    1 person found this answer helpful.
    0 comments No comments

  2. Crystal-MSFT 43,736 Reputation points Microsoft Vendor
    2021-03-03T04:22:48.943+00:00

    @DAMIEN VAN ROBAEYS , Doing research and find an article in GitHud describe the createDeviceLogCollectionRequest action.
    https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/beta/api/intune-devices-manageddevice-createdevicelogcollectionrequest.md

    We can read the above articles to see if it can help. If the issue persists, as Q&A is with limitation resource, we suggest to contact Intune support to get more help:
    https://learn.microsoft.com/en-us/mem/get-support

    Thanks for the understanding and have a nice day!


    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.