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

`Find-MgGraphCommand -Command New-MgGroupMember` fails

Open tomatsue opened this issue 8 months ago • 6 comments

Describe the bug

When running Find-MgGraphCommand -Command New-MgGroupMember, it fails and shows the error message below.

> Find-MgGraphCommand -Command New-MgGroupMember
Find-MgGraphCommand : 'New-MgGroupMember' is not a valid Microsoft Graph PowerShell command. Please check the name and try again.

It appears that New-MgGroupMember is missing from MgCommandMetadata.json.

Expected behavior

Return the information of New-MgGroupMember.

How to reproduce

Execute Find-MgGraphCommand -Command New-MgGroupMember.

SDK Version

2.17.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log
> Find-MgGraphCommand -Command New-MgGroupMember -Debug
デバッグ: Reading MgCommandMetadata from session object.

デバッグ: Received Command: New-MgGroupMember

デバッグ: Reading MgLegacyCommandMapping from session object.

デバッグ: Resolved Command: New-MgGroupMember

デバッグ: Matching Command: New-MgGroupMember

デバッグ: Matching ApiVersion:

Find-MgGraphCommand : 'New-MgGroupMember' is not a valid Microsoft Graph PowerShell command. Please check the name and
try again.
発生場所 行:1 文字:1
+ Find-MgGraphCommand -Command New-MgGroupMember -Debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Find-MgGraphCommand

Configuration

PSVersion 5.1.22621.2506 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22621.2506 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

Other information

No response

tomatsue avatar May 28 '24 08:05 tomatsue