Share via

Unable to find target address when calling deviceConfigurationStates

Sean Patten 25 Reputation points
2023-03-13T20:30:44.5933333+00:00

https://graph.microsoft.com/beta/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates

Hi, I am trying to call this URL but unfortunately, I am getting this response:

{
    "error": {
        "code": "InternalServerError",
        "message": "Unable to find target address",
        "innerError": {
            "date": "2023-03-13T20:26:46",
            "request-id": "99cca7ff-a41a-4c99-b87e-8b16a4d2b6b2",
            "client-request-id": "99cca7ff-a41a-4c99-b87e-8b16a4d2b6b2"
        }
    }
}

This works without any issues: https://graph.microsoft.com/beta/users/{user-id}/deviceConfigurationAndStates('{managedDevice-id}')

Any ideas?

Microsoft Security | Intune | Other
0 comments No comments

Answer accepted by question author

  1. Lu Dai-MSFT 28,531 Reputation points
    2023-03-14T02:29:55.69+00:00

    @Sean Patten Thanks for posting in our Q&A. Did you want to get device configuration profile's deployment status via Graph? If there is any misunderstanding, please correct me.

    If you want to get device status, please refer to the following article:

    https://learn.microsoft.com/en-us/graph/api/intune-deviceconfig-deviceconfigurationdevicestatus-get?view=graph-rest-1.0

    If you want to get user status, please refer to this:

    https://learn.microsoft.com/en-us/graph/api/intune-deviceconfig-deviceconfigurationuserstatus-get?view=graph-rest-1.0

    If there is anything update, feel free to let us know.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    Was this answer helpful?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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