microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet

Device Compliance Scripts Device Run State Wrapper is broken

Open
#968 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave: type:bug
Dominant language
C#
Stars
112
Forks
37
Avg merge
14h 57m
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deviceManagement/deviceComplianceScripts/{deviceComplianceScript-id}/deviceRunStates endpoint and the SDK method shown in the issue. Compare the generated request with the Graph Explorer request and verify that it returns a DeviceComplianceScriptDeviceStateCollectionResponse with data; no source file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.