msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Remove WindowsPrivacyAccessControl from module generation

Open FabienTschanz opened this issue 6 months ago • 1 comments

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_windowsPrivacyAccessControl object from module generation.

FabienTschanz avatar May 20 '25 20:05 FabienTschanz