Skip to content

Frequently need to reinstall the SDK modules #3436

@MiamiFinsFan13

Description

@MiamiFinsFan13

Describe the bug

I frequently have to reinstall the Graph SDK modules (both prod and beta) because after a few months, when running commands I will start getting this error -
get-mguser: The 'get-mguser' command was found in the module 'Microsoft.Graph.Users', but the module could not be loaded due to the following error: [Assembly with same name is already loaded]
For more information, run 'Import-Module Microsoft.Graph.Users'.

The only thing that I have found to be effective to resolve the issue is to run Install-Module Microsoft.Graph -AllowClobber -Force -Scope AllUsers (same for beta). Updating doesn't work and importing the module doesn't work because it is already there.

Expected behavior

expecting to just be able to run the commands

How to reproduce

n/a - seems to be random

SDK Version

No response

Latest version known to work for scenario above?

No response

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

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions