Closed jonwbstr closed 1 year ago
Thanks for following up on this.
There is a link in the comments that shows customer how to load the right profile version using Select-MgProfile - https://aka.ms/pshellsdkdocs. We don't include Select-MgProfile in the snippets as it can be called at any point in a script, ideally at the beginning of a script together with Connect-MgGraph.
We've also dropped support for profiles in v2.x, so Select-MgProfile will no longer be needed once we GA v2.x in a few weeks - msgraph-sdk-powershell/upgrade-to-v2.md at features/2.0 · microsoftgraph/msgraph-sdk-powershell (github.com).
Thanks for the update, looking forward to 2.x!
Using graph explorer I ran the following query
The Code Snippet for Powershell suggested the following command:
The command
Get-MgDeviceManagementGroupPolicyCategory
is currently available in the 'beta' profile so the correct code isThe javascript example does note which version of grah to use.