Skip to content

Invoke-GraphRequest Function Name Conflict #410

@briangadepro

Description

@briangadepro

Modern versions (i.e. 2.35.1) of the Microsoft.Graph.Authentication module include Invoke-GraphRequest as an alias for Invoke-MgGraphRequest. Since aliases take priority over function names, this causes the Invoke-GraphRequest function defined in MSGraph.psm1 to not be used and all functionality to break. The error is "Invoke-MgGraphRequest: A parameter cannot be found that matches parameter name 'Url'."

This can be resolved by renaming the Invoke-GraphRequest function to something else and updating the various calls to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions