In this Azure tutorial, we will discuss how to fix the error method ‘get_serializationsettings’ in type ‘Microsoft.azure.management.internal.resources.resourcemanagementclient’. when Login-AzureRMAccount
Table of Contents
Method ‘get_serializationsettings’ in type ‘Microsoft.azure.management.internal.resources.resourcemanagementclient’ from assembly ‘Microsoft.azure.powershell.clients.resourcemanager, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35’ does not have an implementation.
Recently, while trying to execute the script to upload and download the file from the Azure storage container using PowerShell, I got the above error.
The complete PowerShell script was as below
Login-AzureRmAccount
$Keys2 = "Coro2SvGOTD+nT3YdaKCrnauzWvHMF6BmuD9PfSKtNJWt6etO@@@@@@@@@@@@@@@@@@@@@@@@@@@=="
$StorageContext2 = New-AzureStorageContext -StorageAccountName sqlvaqrc7kssdx4eus -StorageAccountKey $Keys2
$containerName2 = "democontainer2";
Set-AzStorageBlobContent -File "D:\Bijay\Upload3.txt" `
-Container $containerName2 `
-Blob "Upload3.txt" `
-Context $StorageContext2 
The complete error message was as below
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
Note: The reason we are getting this error is that we have Az and AzureRM modules installed, and the AzureRM module is loaded when we are trying to use the Az module.
Solution
To fix the above issue, you need to follow the below steps
Run your PowerShell ISE or Windows PowerShell as an administrator mode

I hope by now, you have the AzureRM module installed on your machine. If not, you can install the AzureRM module by following my article. The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet
Well, the next step to fix this issue is to run the below Enable-AzureRmAlias cmdlet on your PowerShell ISE
PS C:\WINDOWS\system32> Enable-AzureRmAlias -Scope CurrentUser
Now, if you run the below PowerShell script, it will run successfully.
Login-AzureRmAccount
$Keys2 = "Coro2SvGOTD+nT3YdaKCrnauzWvHMF6BmuD9PfSKtNJWt6etO@@@@@@@@@@@@@@@@@@@@@@@@@@@=="
$StorageContext2 = New-AzureStorageContext -StorageAccountName sqlvaqrc7kssdx4eus -StorageAccountKey $Keys2
$containerName2 = "democontainer2";
Set-AzStorageBlobContent -File "D:\Bijay\Upload3.txt" `
-Container $containerName2 `
-Blob "Upload3.txt" `
-Context $StorageContext2 Now, it will ask you to enter the credentials and click the Sign in button.

Then, it executed successfully without any issues. You can check out the below screenshot.

Conclusion
Well, in this Azure tutorial, we discussed how to fix the error “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.“.
I hope it will help you to fix your issue as well !!!.
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more
