Error when trying to expand deploymentProfile while getting WindowsAutopilotDeviceIdentity #971
Labels
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
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.
The text was updated successfully, but these errors were encountered: