Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with PowerShell 7.0.0-rc.1 #17

Open
reikor0x opened this issue Jan 9, 2020 · 7 comments
Open

Not working with PowerShell 7.0.0-rc.1 #17

reikor0x opened this issue Jan 9, 2020 · 7 comments

Comments

@reikor0x
Copy link

reikor0x commented Jan 9, 2020

Module installation works, but:

PS C:\Users\viscia> connect-azuread
Connect-AzureAD: One or more errors occurred. (Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.): Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Connect-AzureAD: One or more errors occurred. (Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.)
Connect-AzureAD: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Connect-AzureAD: One or more errors occurred. (Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.): Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

@AlanMcBee
Copy link

Confirmed this is still an issue in GA release of PS 7.0

@unkn0wn-root
Copy link

Same here. Still the same issue

@felickz
Copy link

felickz commented Jun 18, 2020

Same with PowerShell 7.0.2 and AzureADPreview 2.0.2.102

PowerShell/PowerShell#10473

@successhawk
Copy link

Same issue on PS 7.1.1

@greendx
Copy link

greendx commented Mar 17, 2021

Same with PS 7.1.3

@villeodell
Copy link

I had luck using the Windows PowerShell Compatibility feature, e.g.

Import-Module -Name 'AzureADPreview' -UseWindowsPowerShell

When the first module is imported using Windows PowerShell Compatibility feature, PowerShell creates a remote session named WinPSCompatSession that is running in a background Windows PowerShell 5.1 process. This process is created when the Compatibility feature imports the first module. The process is closed when the last such module is removed (using Remove-Module) or when PowerShell process exits.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility?view=powershell-7.1

@znk0001
Copy link

znk0001 commented Feb 16, 2022

Still an issue, PS 7.2.1
Can we bring AzureAD out of the dark ages with some .NET/PS Core support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants