Skip to content

Installing Microsoft.Graph.Beta v2.33.0 installs Microsoft.Graph.Authentication instead of Microsoft.Graph.Beta.AuthenticationΒ #3460

@secretworkpersona

Description

@secretworkpersona

Describe the bug

Install-PSResource -Name 'Microsoft.Graph.Beta' -Version 2.33.0 -Repository PSGallery -Scope CurrentUser -TrustRepository -Verbose

VERBOSE: Performing the operation "Install-PSResource" on target "Package to install: 'Microsoft.Graph.Beta', version: '2.33.0'".
VERBOSE: Performing the operation "Install-PSResource" on target "Package to install: 'Microsoft.Graph.Authentication', version: '2.33.0'".
VERBOSE: Performing the operation "Install-PSResource" on target "Package to install: 'Microsoft.Graph.Beta.Applications', version: '2.33.0'".
Image

This causes Microsoft.Graph v2.33.0 to error installing Microsoft.Graph.Authentication because it's already installed.
Image

If Microsoft.Graph v2.33.0 is already installed, installing Microsoft.Graph.Beta v2.33.0 will error when it tries to install Microsoft.Graph.Authentication.

Expected behavior

Installing Microsoft.Graph.Beta v2.33.0 will install Microsoft.Graph.Beta.Authentication.

How to reproduce

Install Graph and Graph Beta v2.33.0. Order of install does not matter.

Install-PSResource -Name 'Microsoft.Graph' -Version 2.33.0 -Repository PSGallery -Scope CurrentUser -TrustRepository -Verbose
Install-PSResource -Name 'Microsoft.Graph.Beta' -Version 2.33.0 -Repository PSGallery -Scope CurrentUser -TrustRepository -Verbose

SDK Version

2.33.0

Latest version known to work for scenario above?

2.32.0

Known Workarounds

I have not tried any workarounds.

Debug output

Click to expand log ```

Debug.txt

</details>


### Configuration

[13:21:20] C:\allscripts> $PSVersionTable

Name Value


PSVersion 5.1.26100.7019
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.7019
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


Windows 11 x64 w/OneDrive

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions