-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Cmdlet(s)
Almost all
PowerShell Version
5.1.14409.1005
Module Version
2.7.0 AzureRM.profile
3.7.0 AzureRM.Resources
OS Version
Windows 10
Windows 2012R2
Description
This works: Add-AzureRmAccount -EnvironmentName AzureUSGovernment
Then pretty much every other command fails like this:
PS C:\Users\peterb> Get-AzureRmResourceGroup
Get-AzureRmResourceGroup : Exception has been thrown by the target of an invocation.
At line:1 char:1
+ Get-AzureRmResourceGroup
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureRmResourceGroup], TargetInvocationException
+ FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Microsoft.Azure.Commands.ResourceManager.Cmd
lets.Implementation.GetAzureResourceGroupCmdlet
Debug Output
Using $DebugPreference="Continue"
or -Verbose
or -Debug
results in the same output
Script/Steps for Reproduction
Set-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy -Name Enabled -Value 1
Restart-Computer -Force
New session:
# confirm FIPS setting:
Get-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy
# Login -- this works
Add-AzureRmAccount -EnvironmentName AzureUSGovernment
# Try any other AzureRM command
> Get-AzureRmResourceGroup
Get-AzureRmResourceGroup : Exception has been thrown by the target of an invocation.
At line:1 char:1
+ Get-AzureRmResourceGroup
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzureRmResourceGroup], TargetInvocationException
+ FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Microsoft.Azure.Commands.ResourceManager.Cmd
lets.Implementation.GetAzureResourceGroupCmdlet