Closed glaisne closed 6 years ago
@glaisne Az
does not support side-by-side loading with AzureRM
(it may cause unintended side-effects). Can you please remove all AzureRM modules and try again? Additionally, if it still fails, can you try installing PowerShell Core and let us know if the issue persists within PowerShell Core?
Installing PSCore and installing AZ module resolved the issue. As a note, I did not uninstall AzureRM and my Core install does not see the AzureRM module (for some reason).
Thanks
Closing since issue has been worked-around.
I also got a similar type of issue. Try the below URL, if it helps
https://azurelessons.com/method-get_serializationsettings-error-when-login-azurermaccount/
Description
using 0.3.0 of az modules, running 'Get-AzKeyVault' or 'Get-AzKeyVault -vaultName -ResourceGroupName ' result in the following error:
writeErrorStream : True PSMessageDetails : Exception : System.TypeLoadException: Method 'get_SerializationSettings' in type 'Microsoft.Azure.Management.KeyVault.KeyVaultManagementClient' from assembly 'Microsoft.Azure.Management.KeyVault, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. at Microsoft.Azure.Commands.KeyVault.Models.VaultManagementClient..ctor(IAzureContext context) at Microsoft.Azure.Commands.KeyVault.KeyVaultManagementCmdletBase.get_KeyVaultManagementClient() at Microsoft.Azure.Commands.KeyVault.GetAzureKeyVault.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() TargetObject : CategoryInfo : CloseError: (:) [Get-AzKeyVault], TypeLoadException FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.GetAzureKeyVault ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at, : line 1
PipelineIterationInfo : {0, 1}
Script/Steps for Reproduction
Module Version
Environment Data
Debug Output