Skip to content

Commit d7a69b1

Browse files
authored
Merge pull request #284504 from SnehaSudhirG/13Aug-MigrationTroubleshoot
Added a new article, updated toc
2 parents 5b38d9b + 8d86b13 commit d7a69b1

File tree

7 files changed

+94
-2
lines changed

7 files changed

+94
-2
lines changed
21.3 KB
Loading
29.9 KB
Loading
30.2 KB
Loading
58.6 KB
Loading

articles/update-manager/migration-key-points.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A summary of important pointers while migrating using Azure portal
44
author: snehasudhirG
55
ms.service: azure-update-manager
66
ms.topic: conceptual
7-
ms.date: 08/01/2024
7+
ms.date: 08/13/2024
88
ms.author: sudhirsneha
99
---
1010

@@ -43,7 +43,10 @@ This article lists the significant details that you must note when you're migrat
4343

4444
- When the migration runbook is executed multiple times, say you did Migrate All automation schedules and then again tried to migrate all the schedules, then migration runbook runs the same logic. Doing it again updates the MRP schedule if any new change is present in SUC. It doesn't make duplicate config assignments. Also, operations are carried only for automation schedules having enabled schedules. If an SUC was **Migrated** earlier, it will be skipped in the next turn as its underlying schedule will be **Disabled**.
4545
- In the end, you can resolve more machines from Azure Resource Graph as in Azure Update Manager. You can't check if Hybrid Runbook Worker is reporting or not, unlike in Automation Update Management where it was an intersection of Dynamic Queries and Hybrid Runbook Worker.
46-
- Machines that are unsupported in Azure Update Manager aren't migrated. The Schedules, which have such machines will be partially migrated and only supported machines of the software update configuration will be moved to Azure Update Manager. To prevent patching by both Automation Update Management and Azure Update Manager, remove migrated machines from deployment schedules in Automation Update Management.
46+
- Machines that are unsupported in Azure Update Manager aren't migrated. The Schedules, which have such machines will be partially migrated and only supported machines of the software update configuration will be moved to Azure Update Manager. To prevent patching by both Automation Update Management and Azure Update Manager, remove migrated machines from deployment schedules in Automation Update Management.
47+
- **Post Deboarding**:
48+
- Remove the user managed identity created for migration that is linked with the automation account. For more information, see [Remove user-assigned managed identity for Azure Automation account](../automation/remove-user-assigned-identity.md#remove-using-the-azure-portal).
49+
- [Delete the user managed identity](https://learn.microsoft.com/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp#delete-a-user-assigned-managed-identity).
4750

4851
Post-migration, a Software Update Configuration can have any one of the following four migration statuses:
4952

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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)

articles/update-manager/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ items:
7575
href: migration-using-runbook-scripts.md
7676
- name: Key points to note for automated migration
7777
href: migration-key-points.md
78+
- name: Troubleshoot automated migration
79+
href: migration-troubleshoot.md
7880
- name: Using manual migration
7981
href: migration-manual.md
8082
- name: Check update compliance

0 commit comments

Comments
 (0)