microsoft / microsoft/powerbi-powershell
Importing Az.Accounts after MicrosoftPowerPIMgmt throws Assembly with same name is already loaded error
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
If you import MicrosoftPowerBIMgmt then import Az.Accounts an error will be thrown saying Import-Module: Assembly with same name is already loaded.
MicrosoftPowerBIMgmt version: 1.2.1077
Az.Accounts version: 2.7.2
Reproduction Steps:
Import-Module MicrosoftPowerBIMgmt
Import-Module Az.Accounts
It works fine when doing, however, I haven't tested all the features so something may be broken.
Import-Module Az.Accounts
Import-Module MicrosoftPowerBIMgmt
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the two Import-Module commands from the reproduction steps, then compare the module-loading entry points for MicrosoftPowerBIMgmt and Az.Accounts. Done means importing MicrosoftPowerBIMgmt followed by Az.Accounts no longer raises the assembly-name conflict, without breaking the reverse import order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100