Open SHaack14 opened 9 months ago
Hi could you make sure you are not importing Azure/AzureRM/Az in the same session? Easiest thing to do is to open a new PS session and run Enable-AzureRmAlias
. You can verify this by Get-Module Az*
, result should not have Azure
or AzureRM
.
BTW I transferred the issue to this repo as it's related to the migration tool.
Description
I have tried using the Install-Module -Name Az.Tools.Migration and the first issue I hit was it did not update all the modules in my scripts so I had to manually update them. Even though I ran Uninstall-AzureRm and Install-Module -Name Az -AllowClobber -Scope CurrentUser and even manually removed references to AzureRm from my user/powershell/modules folder I get serialization errors. Since that did not work I created a new git branch for my code and instead of using the Az.tools.migration I added the Enable-AzureRmAlias to the start of all my scripts and I am getting this error Enable-AzureRmAlias : 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. At line:1 char:1
Enable-AzureRmAlias : 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. At line:1 char:1
Issue script & Debug output
Environment data
Module versions
Error output