Troubleshoot issues during automated migration
Applies to: ✔️ Windows VMs ✔️ Linux VMs ✔️ On-premises environment ✔️ Azure Arc-enabled servers
This article describes the errors that might occur when you use migration portal experience or scripts, and how to resolve them.
When the required PowerShell modules aren't installed for executing the prerequisite scripts, you may see the following errors:
Ensure you successfully execute the command Install-Module -Name Az -Repository PSGallery -Force
Encountering a warning as - unable to acquire token organizations
with error InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa)
This is part of one of the documented issues with Az.Accounts 3.0.0 module. Learn more
Execute command Update-AzConfig -EnableLoginByWam $false
in an elevated PowerShell Session.
Your organization requires to use Connect-AzAccount -Environment AzureChinaCloud
with DeviceCode
parameter to login to Azure.
- Modify this line in the Prerequisite script where it has the Connect-AzAccount -Environment AzureChinaCloud Command to use the - UseDeviceAuthentication parameter.
Operational Insights module isn't installed.
Execute Command Install-Module-Name Az.OperationalInsights
This error can come up while executing the Migration/Deboarding Runbook in Azure. This can happen if you have custom Az Modules in your automation account, which are outdated.
Delete custom Az Modules and ensure that default Az Module is updated to 8.0.0 for PowerShell 5.1