Skip to content

Device Compliance Scripts Device Run State Wrapper is broken #968

@luke-patchblox

Description

@luke-patchblox

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions