|
| 1 | +--- |
| 2 | +title: Azure Update Manager Troubleshooter |
| 3 | +description: Identify common issues using the Troubleshooter in Azure Update Manager. |
| 4 | +ms.service: azure-update-manager |
| 5 | +ms.date: 09/17/2024 |
| 6 | +ms.topic: troubleshooting |
| 7 | +ms.author: sudhirsneha |
| 8 | +author: SnehaSudhirG |
| 9 | +--- |
| 10 | + |
| 11 | +# Troubleshoot issues in Azure Update Manager |
| 12 | + |
| 13 | +This article describes how to use the Troubleshooter in Azure Update Manager to identify common issues and how to resolve them. |
| 14 | + |
| 15 | +The Troubleshooter option is enabled when checking for history of only **Failed** operations in Azure Update Manager. |
| 16 | + |
| 17 | +:::image type="content" source="./media/troubleshooter-known-issues/history-failed-operations.png" alt-text="Screenshot that shows the history of failed operations. " lightbox="./media/troubleshooter-known-issues/history-failed-operations.png"::: |
| 18 | + |
| 19 | +The Troubleshooter can also be seen when checking history of **Failed** operations in the machine’s updates history tab. |
| 20 | + |
| 21 | + |
| 22 | +:::image type="content" source="./media/troubleshooter-known-issues/history-failed-operations-updates.png" alt-text="Screenshot that shows the history of failed operations in machine’s updates history tab. " lightbox="./media/troubleshooter-known-issues/history-failed-operations-updates.png"::: |
| 23 | + |
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +- For Azure Machines, ensure that the guest agent version on the VM is 2.4.0.2 or higher and agent status is **Ready**. |
| 27 | + |
| 28 | +- For Arc Machines, ensure that the arc agent version on the machine is 1.39 or higher and agent status is **Connected**. |
| 29 | + |
| 30 | +- The Troubleshooter isn't applicable if the operation type is Azure Managed Safe Deployment, that is, Auto Patching. |
| 31 | + |
| 32 | +- Ensure that the machine is present and running. |
| 33 | + |
| 34 | +- For executing RUN commands, you must have the following permissions: |
| 35 | + |
| 36 | + - Microsoft.Compute/virtualMachines/runCommand/write permission (for Azure) - The [Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) role and higher levels have this permission. |
| 37 | + - Microsoft.HybridCompute/machines/runCommands/write permission (for Arc) - The [Azure Connected Machine Resource Administrator](/azure/role-based-access-control/built-in-roles) role and higher levels have this permission. |
| 38 | + |
| 39 | +- Ensure the machine can access [user content](https://raw.githubusercontent.com/) as it needs to retrieve the [scripts](https://github.com/Azure/AzureUpdateManager) during the execution of the Troubleshooter. |
| 40 | + |
| 41 | + |
| 42 | +## What does the Troubleshooter do? |
| 43 | + |
| 44 | +The troubleshooter performs two types of checks for both Azure and Arc machines. |
| 45 | + |
| 46 | +- For the machine under troubleshooting, the Troubleshooter runs Resource Graph Queries to obtain details about the machine's current state, assessment mode settings, patch mode settings, and the status of various services running on it. For example, for Azure machines, it gets details about the guest agent while for Arc machines it gets details about arc agent and its status. |
| 47 | +- The troubleshooter executes Managed RUN Commands on the machine to execute scripts that fetch information about the update related service and configurations for the machines. *The script doesn't make any modifications to your machine.* |
| 48 | + |
| 49 | +You can find the [scripts](https://github.com/Azure/AzureUpdateManager/tree/main/Troubleshooter) here. |
| 50 | + |
| 51 | +Post performing the checks, the troubleshooter suggests possible mitigations to test for checks that failed. Follow the mitigation links and take appropriate actions. |
| 52 | + |
| 53 | + |
| 54 | +:::image type="content" source="./media/troubleshooter-known-issues/check-updates-run.png" alt-text="Screenshot that shows possible mitigations to test for checks that failed. " lightbox="./media/troubleshooter-known-issues/check-updates-run.png"::: |
| 55 | + |
| 56 | +## What are Managed RUN Commands? |
| 57 | + |
| 58 | +- Managed RUN commands use the Guest agent for Azure machines and Arc Agent for Arc machines to remotely and securely executed commands or scripts inside your machine. |
| 59 | + |
| 60 | +- Managed RUN commands don't require any additional extension to be installed on your machines. |
| 61 | + |
| 62 | +- Managed RUN commands are generally available for Azure while it is in preview for Arc. |
| 63 | + |
| 64 | +- Learn more about [Managed RUN command for Azure](https://learn.microsoft.com/azure/virtual-machines/run-command-overview) and [Managed RUN command for Arc](../azure-arc/servers/run-command.md). |
| 65 | + |
| 66 | + |
| 67 | +## Next steps |
| 68 | +* To learn more about Update Manager, see the [Overview](overview.md). |
| 69 | +* To view logged results from all your machines, see [Querying logs and results from Update Manager](query-logs.md). |
| 70 | + |
| 71 | + |
| 72 | + |
0 commit comments