Skip to content

Issue with Graph SDK 2.27.0 - Get-MgBetaDeviceManagementDeviceConfiguration fails #6055

@FabienTschanz

Description

@FabienTschanz

Description of the issue

With the PowerShell Graph SDK 2.27.0, the cmdlet Get-MgBetaDeviceManagementDeviceConfiguration fails during execution if the -DeviceConfigurationId parameter is specified. The corresponding message is that the parameter set cannot be resolved.

I reported this issue on the SDK repository at microsoftgraph/msgraph-sdk-powershell#3295. Suggesting to revert back to 2.26.1 until a newer version is available that contains fix for it. Otherwise, we'd need to update ~30 resources which specify the combination of the cmdlet with the parameter to also include an additional parameter, so that the parameter set can successfully be resolved.

Tagging @ykuijs @NikCharlebois for visibility. Please advise on what to do next.

Microsoft 365 DSC Version

V1.25.423.1

Which workloads are affected

Intune

The DSC configuration

None.

Verbose logs showing the problem

PS C:\Users\U116139> Get-MgBetaDeviceManagementDeviceConfiguration -DeviceConfigurationId id -debug
Get-MgBetaDeviceManagementDeviceConfiguration : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Get-MgBetaDeviceManagementDeviceConfiguration -DeviceConfigurationId  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-MgBetaDevic...ceConfiguration], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Get-MgBetaDeviceManagementDeviceConfiguration

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 26100.1.amd64fre.ge_release.240331-1435
OsLanguage           : en-US
OsMuiLanguages       : {en-US, de-DE, en-GB}

--------------------------------------------------

Name                           Value
----                           -----
PSVersion                      5.1.26100.3624
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.3624
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions