Skip to content

Get-MgContext is not a valid Microsoft Graph PowerShell command #3192

@12Knocksinna

Description

@12Knocksinna

Describe the bug

Get-MgContext is an important cmdlet that doesn't seem to be respected like it should be:

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

Expected behavior

I expect the Find-MgGraphCommand cmdlet to accept Get-MgContext

Find-MgGraphCommand -Command get-mgcontext

How to reproduce

Run Find-MgGraphCommand to check Get-MgContext

SDK Version

2.26.1

Latest version known to work for scenario above?

Never

Known Workarounds

None

Debug output

No debug because cmdlet can't run

Configuration

Name Value


PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions