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

Pwsh core has issues with App Creation Scripts #53

Open
Amondale opened this issue Mar 11, 2022 · 0 comments
Open

Pwsh core has issues with App Creation Scripts #53

Amondale opened this issue Mar 11, 2022 · 0 comments

Comments

@Amondale
Copy link

Amondale commented Mar 11, 2022

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

From Powershell Core (7.2.1) run .\Cleanup.ps1

Any log messages given by the failure

Connect-AzureAD: ms-identity-aspnet-webapi-onbehalfof\AppCreationScripts\Cleanup.ps1:44
Line |
44 | … $creds = Connect-AzureAD -Credential $Credential -AzureEnvironment …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 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'.

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
11

Versions

Mention any other details that might be useful

PowerShell/PowerShell#10473 looks to be still going on with PWSH CORE connecting to AAD. If there is a known workaround, please include that in the App Creation Scripts README. Otherwise, please specify Powershell 5.1 needs to be used to run the scripts.


Thanks! We'll be in touch soon.

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

1 participant