Method ‘get_SerializationSettings’ error when Login-AzureRMAccount

Error:

Login-AzureRMAccount : Method ‘get_SerializationSettings’ in type
‘Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient’ from
assembly ‘Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35’ does not have an
implementation.
At line:1 char:1
+ Login-AzureRMAccount
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-AzureRmAccount], TypeL
oadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Azure.Commands
.Profile.ConnectAzureRmAccountCommand

Resolution:
Close Powershell and relaunch, Install AzureRM Powershell Module using the article if you haven’t installed

if you have already installed, follow the below commands,

open powershell and run the commands
Command 1: import-module -Name Azurerm
Command 2:Login-AzureRMAccount

Now you can see that you’re able to login without any issues.

Leave a Reply

Your email address will not be published. Required fields are marked *