|
| 1 | +--- |
| 2 | +title: Troubleshoot known issues with Azure Update Manager while migrating from Automation Update Management |
| 3 | +description: This article provides details on known issues and how to troubleshoot any problems when migrating from Automation Update Management to Azure Update Manager |
| 4 | +author: snehasudhirG |
| 5 | +ms.service: azure-update-manager |
| 6 | +ms.topic: conceptual |
| 7 | +ms.date: 08/13/2024 |
| 8 | +ms.author: sudhirsneha |
| 9 | +--- |
| 10 | + |
| 11 | +# Troubleshoot issues during automated migration |
| 12 | + |
| 13 | +**Applies to:** :heavy_check_mark: Windows VMs :heavy_check_mark: Linux VMs :heavy_check_mark: On-premises environment :heavy_check_mark: Azure Arc-enabled servers |
| 14 | + |
| 15 | +This article describes the errors that might occur when you use migration portal experience or scripts, and how to resolve them. |
| 16 | + |
| 17 | +## Required PowerShell modules for executing prerequisite script aren't installed |
| 18 | + |
| 19 | +### Cause |
| 20 | + |
| 21 | +When the required PowerShell modules aren't installed for executing the prerequisite scripts, you may see the following errors: |
| 22 | + |
| 23 | +:::image type="content" source="./media/migration-troubleshoot/error-prerequisite-scripts.png" alt-text="Screenshot that shows the error code when PowerShell modules aren't installed. " lightbox="./media/migration-troubleshoot/error-prerequisite-scripts.png"::: |
| 24 | + |
| 25 | +:::image type="content" source="./media/migration-troubleshoot/error-migration-prerequisite-scripts.png" alt-text="Screenshot that shows the error code when the required PowerShell modules aren't installed. " lightbox="./media/migration-troubleshoot/error-migration-prerequisite-scripts.png"::: |
| 26 | + |
| 27 | +### Resolution |
| 28 | + |
| 29 | +Ensure you successfully execute the command `Install-Module -Name Az -Repository PSGallery -Force` |
| 30 | + |
| 31 | +## Unable to acquire token for tenant organizations |
| 32 | + |
| 33 | +### Issue |
| 34 | + |
| 35 | +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)` |
| 36 | + |
| 37 | +### Cause |
| 38 | + |
| 39 | +This is part of one of the documented [issues](https://github.com/Azure/azure-powershell/issues/25005) with Az.Accounts 3.0.0 module. [Learn more](https://learn.microsoft.com/answers/questions/1342970/warning-unable-to-acquire-token-for-tenant-organiz) |
| 40 | + |
| 41 | +### Resolution |
| 42 | + |
| 43 | +Execute command `Update-AzConfig -EnableLoginByWam $false` in an elevated PowerShell Session. |
| 44 | + |
| 45 | +### Issue |
| 46 | + |
| 47 | +:::image type="content" source="./media/migration-troubleshoot/warning-token-organization.png" alt-text="Screenshot that shows the warning message when tokens aren't acquired for tenant organizations. " lightbox="./media/migration-troubleshoot/warning-token-organization.png"::: |
| 48 | + |
| 49 | +### Cause |
| 50 | + |
| 51 | +Your organization requires to use `Connect-AzAccount` with `DeviceCode` parameter to login to Azure. |
| 52 | + |
| 53 | +### Resolution |
| 54 | + |
| 55 | +- Modify this [line](https://github.com/azureautomation/Preqrequisite-for-Migration-from-Azure-Automation-Update-Management-to-Azure-Update-Manager/blob/1750c1758cf9be93153a24b6eb9bfccc174ce66b/MigrationPrerequisites.ps1#L1224) in the Prerequisite script where it has the Connect-AzAccount Command to use the - [UseDeviceAuthentication](https://review.learn.microsoft.com/powershell/module/az.accounts/connect-azaccount?view=azps-12.2.0&branch=main#-usedeviceauthentication) parameter. |
| 56 | + |
| 57 | + |
| 58 | +## Encountering Get-AzOperationInsightsWorkspace exception message |
| 59 | + |
| 60 | +### Issue |
| 61 | + |
| 62 | +:::image type="content" source="./media/migration-troubleshoot/exception-message.png" alt-text="Screenshot that shows the exception message when the operational insights module isn't installed. " lightbox="./media/migration-troubleshoot/exception-message.png"::: |
| 63 | + |
| 64 | +### Cause |
| 65 | + |
| 66 | +[Operational Insights](/powershell/module/az.operationalinsights/) module isn't installed. |
| 67 | + |
| 68 | +### Resolution |
| 69 | + |
| 70 | +Execute Command `Install-Module-Name Az.OperationalInsights` |
| 71 | + |
| 72 | +## Couldn't convert string to DateTimeOffset: 1719675651. Path 'expires_on', line 1, position 1608. |
| 73 | + |
| 74 | +### Cause |
| 75 | + |
| 76 | +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. |
| 77 | + |
| 78 | +### Resolution |
| 79 | + |
| 80 | +Delete custom Az Modules and ensure that default Az Module is updated to 8.0.0 for PowerShell 5.1 |
| 81 | + |
| 82 | +## Next steps |
| 83 | + |
| 84 | +- [Migration using Azure portal](migration-using-portal.md) |
| 85 | +- [Migration using runbook scripts](migration-using-runbook-scripts.md) |
| 86 | +- [Manual migration guidance](migration-manual.md) |
| 87 | +- [Key points during migration](migration-key-points.md) |
0 commit comments