Issue with Powershell 7 and Azure connectivity

%3CLINGO-SUB%20id%3D%22lingo-sub-2101463%22%20slang%3D%22en-US%22%3EIssue%20with%20Powershell%207%20and%20Azure%20connectivity%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2101463%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20installed%20powershell%207%20module%20on%20my%20system.Azure%20AZ%20module%20is%20already%20there%20on%20my%20system.%3C%2FP%3E%3CP%3EWhen%20I%20am%20trying%20to%20connect%20to%20AZ%20account%20uisng%20Login-Azaccount%2C%20then%20i%20am%20getting%20belwo%20error.Can%20some%20one%20please%20assiist%20me%20on%20this%20issue.%3C%2FP%3E%3CP%3EERROR%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnect-AzureRmAccount%3A%20Could%20not%20load%20type%20'System.Security.Cryptography.SHA256Cng'%20from%20assembly%20'System.Core%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089'.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have installed powershell 7 module on my system.Azure AZ module is already there on my system.

When I am trying to connect to AZ account uisng Login-Azaccount, then i am getting belwo error.Can some one please assiist me on this issue.

ERROR:

 

Connect-AzureRmAccount: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

0 Replies