Skip to content

FIPS mode breaks AzureRM #3642

@pburkholder

Description

@pburkholder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions