Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

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.

May 8, 2024November 5, 2023 by Bijay Kumar

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.
  • Solution

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 
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.

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

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 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
method 'get_serializationsettings' in type 'microsoft.azure.management.internal.resources.resourcemanagementclient'

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.

get_serializationsettings

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

method 'get_serializationsettings' in type

Con