msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Remove WindowsPrivacyAccessControl from module generation
This PR excludes the deviceManagement_windowsPrivacyAccessControl resource from being generated into the DeviceManagement module. This is necessary because it otherwise is "merged" with the Get-MgBetaDeviceManagementDeviceConfiguration cmdlet, therefore resulting in a broken parameter set resolution.
deviceManagement_windowsPrivacyAccessControl is assigned the Get-MgBetaDeviceManagementDeviceConfiguration command in MgCommandMetadata.json. There, also the variants Access, AccessExpanded, AccessViaIdentity and AccessViaIdentityExpanded are defined. Having this definition there forces the merge of the default Get-MgBetaDeviceManagementDeviceConfiguration cmdlet with this object, although this should have a dedicated cmdlet, or even better, simply be excluded because it doesn't serve a purpose in having it.
- Fixes #3295
Changes proposed in this pull request
- Exclude the
deviceManagement_windowsPrivacyAccessControlobject from module generation.