How to fix "Assembly with same name is already loaded" while using Az PowerShell and Microsoft Graph PowerShell module?

Nagendrra C 70 Reputation points
2023-08-08T14:30:51.27+00:00

Hi,

I am deploying a few Azure resources using az PowerShell and MgGraph PowerShell modules, using deployment script in an ARM Template, while using azpowershell 8.0 and importing a few modules I am getting "Assembly with same name is already loaded". when installing the whole "Microsoft.Graph" Getting a different error stating cannot convert to secure string.

User's image

User's image

User's image

User's image

User's image

Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.