Skip to content

Invoke-GraphRequest Function Name Conflict #410

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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