You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
TypeLoadException: 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 <ScriptBlock>, C:\dev\AuditAutomation-scriptchanges\AuditAutomationV2\TestAutomation\Local.tests.ps1: line 2
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Pester.psm1: line 297
at Invoke-Pester, C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Pester.psm1: line 310
at <ScriptBlock>,C:\dev\AuditAutomation-scriptchanges\AuditAutomationV2\TestAutomation\Invoke-GzPester.ps1: line 60
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
The text was updated successfully, but these errors were encountered: