Connect-AzureRmAccount -Subscription 'Demonstration Account' $rg = Get-AzureRmResourceGroup -Name 'psdemo-rg' -Location 'centralus'
Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, | Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Run Connect-AzureRmAccount to login.
Install Azure PowerShell on Windows with PowerShellGet | Microsoft Docs[^]: The module described in this document, AzureRM, uses .NET Framework. This makes it incompatible with PowerShell 6.0, which uses .NET Core. If you are using PowerShell 6.0, follow the installation instructions for macOS and Linux.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)