Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to expand deploymentProfile while getting WindowsAutopilotDeviceIdentity #971

Open
schuetdm opened this issue Feb 18, 2025 · 1 comment
Labels
status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close

Comments

@schuetdm
Copy link

I'm trying to get some additional information from DeviceManagement.WindowsAutopilotDeviceIdentities including the deploymentProfile and intendedDeploymentProfile. Sorry if this is supposed to go into the discussions area, but I get a 404 not found when using the link provided in the pick list: https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/discussions

I also apologize for my use of VB.NET, but I'm versed in C# to VB.NET code translation and I'm quite sure the syntax here is correct.

Dim apDevice As Models.WindowsAutopilotDeviceIdentity = graphClient.DeviceManagement.WindowsAutopilotDeviceIdentities(tmpdevice.Id).GetAsync(Sub(requestConfiguration) requestConfiguration.QueryParameters.Expand = New String() {"deploymentProfile", "intendedDeploymentProfile"} End Sub).GetAwaiter.GetResult()

This throws an error of {"Parsing OData Select and Expand failed: Could not find a property named 'deploymentProfile' on type 'microsoft.graph.windowsAutopilotDeviceIdentity'."}

Strange thing to me is the namespace mentioned is microsoft.graph.windowsAutopilotDeviceIdentity rather than models.windowsAutopilotDeviceIdentity

Thanks for any help or suggestions, or at the very least please try and re-produce.

Image

@schuetdm schuetdm added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Feb 18, 2025
@andrueastman
Copy link
Member

Thanks for raising this @schuetdm

Any chance you are able to make a successful request to the endpoint you are looking for using the Graph Explorer?
https://aka.ms/ge. This would be helpful to rule out if the SDK is making a incorrect request here or the API endpoint does not support the query.

@andrueastman andrueastman added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close
Projects
None yet
Development

No branches or pull requests

2 participants