Skip to content

Connect-MgGraph -Identity returns Error connecting to MS Graph Invalid JWT access tokenΒ #3207

@deniscooper

Description

@deniscooper

Describe the bug

Running from Azure Automation Account Powershell 7.2 using Graph module version
2.26.1.

When connecting to graph using a system managed identity of the automation account, it throws an error stating invalid JWT access token

Expected behavior

This worked in previous graph module version, but stopped working since upgrading modules.

Expected behaviour is to connect to graph using system managed identity

How to reproduce

  1. From Azure Automation using Powershell 7.2 runtime environment
  2. Run connect-mggraph -identity
  3. error thrown is invalid jwt

SDK Version

2.26.1.

Latest version known to work for scenario above?

Previous version worked, but i didn't make a note of the version number

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### 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