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.

In this Azure tutorial, we will discuss how to fix the error, method ‘get_serializationsettings’ in type ‘microsoft.azure.management.internal.resources.resourcemanagementclient’ from assembly ‘microsoft.azure.powershell.clients.resourcemanager which occurs while trying to execute the New-AzureRmAutomationConnection command using PowerShell in Azure.

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 recently got the above error message while trying to execute the New-AzureRmAutomationConnection command using PowerShell. Below is the cmdlet I was executing for creating the AzureSQL database.

$myConnectionAssetName = "AzureRunAsConnection"
$ConnectionFieldValues = @{"ApplicationId" = $Application.ApplicationId; "TenantId" = $TenantID.TenantId; "CertificateThumbprint" = $Cert.Thumbprint; "SubscriptionId" = $mySubscriptionId}
New-AzureRmAutomationConnection -ResourceGroupName $myResourceGroup -AutomationAccountName $AutomationAccountName -Name $myConnectionAssetName -ConnectionTypeName AzureServicePrincipal -ConnectionFieldValues $myConnectionFieldValues 

After executing the above script, I encountered the error shown in the screenshot below.

method 'get_serializationsettings' in type 'microsoft.azure.management.internal.resources.resourcemanagementclient' from assembly

Solution

Now, to fix the above issue, you need to follow the steps below

1. Run your PowerShell ISE or Windows PowerShell in 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.

2. Install the AzureRM module, referring to my article. No match was found for the specified search criteria and module name ‘AzureRM’

3. Once you have successfully installed the AzureRM module, you can rerun the below cmdlet.

$myConnectionAssetName = "AzureRunAsConnection"
$ConnectionFieldValues = @{"ApplicationId" = $Application.ApplicationId; "TenantId" = $TenantID.TenantId; "CertificateThumbprint" = $Cert.Thumbprint; "SubscriptionId" = $mySubscriptionId}
New-AzureRmAutomationConnection -ResourceGroupName $myResourceGroup -AutomationAccountName $AutomationAccountName -Name $myConnectionAssetName -ConnectionTypeName AzureServicePrincipal -ConnectionFieldValues $myConnectionFieldValues 
connect-azaccount : method 'get_serializationsettings' in type

You will not get the error “method ‘get_serializationsettings’ in type” after executing the above cmdlet.

Wrapping UP

In this Azure tutorial, we discussed how to resolve an error related to the method ‘get_serializationsettings’ in type ‘microsoft.azure.management.internal.resources.resourcemanagementclient’. I hope it helped you resolve your issue!

You may like the following Azure tutorials:

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!