msgraph-beta-sdk-dotnet icon indicating copy to clipboard operation
msgraph-beta-sdk-dotnet copied to clipboard

Device Compliance Scripts Device Run State Wrapper is broken

Open luke-patchblox opened this issue 9 months ago • 3 comments

Describe the bug

I am trying to query a specific device compliant script's run states like below.

Image

However, I am getting an error like below.

Image

Expected behavior

Should be getting back an DeviceComplianceScriptDeviceStateCollectionResponse object with data.

How to reproduce

Either go to Graph Explorer and use this endpoint: https://graph.microsoft.com/beta/deviceManagement/deviceComplianceScripts/{deviceComplianceScript-id}/deviceRunStates

OR

Use the SDK and use the method like the first image of the post.

SDK Version

5.94.0-preview

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

It is important to note that it appears to be an issue with the URL/endpoint that is configured because even using the Graph Explorer tool I get this error.

luke-patchblox avatar Feb 12 '25 19:02 luke-patchblox

Thanks for raising this @luke-patchblox

Are you able to confirm if this endpoint was working at some point? The error seems to suggest the endpoint is not supported by the API at the moment.

andrueastman avatar Feb 20 '25 12:02 andrueastman

Thanks for raising this @luke-patchblox

Are you able to confirm if this endpoint was working at some point? The error seems to suggest the endpoint is not supported by the API at the moment.

I had not tested the endpoint before the day of that error, so I do not know if the endpoint was ever working. Perhaps it just hasn't been added yet?

luke-patchblox avatar Feb 20 '25 14:02 luke-patchblox