Skip to content

[BUG] Mismatched Microsoft.Graph Modules #548

@mdowst

Description

@mdowst

To Reproduce

The mismatched versions are preventing all of the modules from loading. If you load the Microsoft.Graph.Applications module first all of the other will fail because they are on an older version.

Import-Module Microsoft.Graph.Applications                                        
Import-Module Microsoft.Graph.Groups

Observed Behavior

Below is the error when attempting to import the 2.26.1 versions after the 2.27.0 module is loaded.

Import-Module: Could not load file or assembly 'Microsoft.Graph.Authentication, Version=2.26.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Assembly with same name is already loaded

Below will show the mismatched versions

Get-Module 'Microsoft.Graph.*' -ListAvailable

Expected behavior

The expected behavior is that you can load all of the installed graph modules.

Is this specific to Cloud Shell?

This is a cloud shell only issue because it is the modules that are installed by default.

Interface information

How are you accessing Cloud Shell - https://portal.azure.com
Edge on Windows 11

Additional context

The Microsoft.Graph.Applications module is on version 2.27.0. All others are on version 2.26.1.

Metadata

Metadata

Assignees

Labels

Triage-neededTriage needed by Cloud Shell teambugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions