Skip to content

Commit f38b42c

Browse files
authored
Merge pull request #110378 from BethWilke/branch8
Fixing documentation task 1696159
2 parents eb138ca + 2d72d8e commit f38b42c

File tree

1 file changed

+70
-30
lines changed

1 file changed

+70
-30
lines changed

articles/automation/troubleshoot/update-management.md

Lines changed: 70 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ manager: carmonm
1111
---
1212
# Troubleshooting issues with Update Management
1313

14-
This article discusses solutions to issues that you might encounter when you use Update Management.
14+
This article discusses solutions to issues that you might come across when using Update Management.
1515

1616
There's an agent troubleshooter for the Hybrid Worker agent to determine the underlying problem. To learn more about the troubleshooter, see [Troubleshoot update agent issues](update-agent-issues.md). For all other issues, use the following troubleshooting guidance.
1717

18-
If you encounter issues while you're trying to onboard the solution on a virtual machine (VM), check the **Operations Manager** log under **Application and Services Logs** on the local machine for events with event ID 4502 and event details that contain `Microsoft.EnterpriseManagement.HealthService.AzureAutomation.HybridAgent`.
18+
If you encounter issues when onboarding the solution on a virtual machine (VM), check the **Operations Manager** log under **Application and Services Logs** on the local machine. Look for events with event ID 4502 and event details that contain `Microsoft.EnterpriseManagement.HealthService.AzureAutomation.HybridAgent`.
1919

20-
The following section highlights specific error messages and possible resolutions for each. For other onboarding issues see [Troubleshoot solution onboarding](onboarding.md).
20+
The following section highlights specific error messages and possible resolutions for each. For other onboarding issues, see [Troubleshoot solution onboarding](onboarding.md).
2121

2222
## Scenario: You receive the error "Failed to enable the Update solution"
2323

2424
### Issue
2525

26-
When you attempt to enable the Update Management solution in your Automation account, you encounter the following error:
26+
When you try to enable the Update Management solution in your Automation account, you get the following error:
2727

2828
```error
2929
Error details: Failed to enable the Update solution
@@ -33,11 +33,11 @@ Error details: Failed to enable the Update solution
3333

3434
This error can occur for the following reasons:
3535

36-
* The network firewall requirements for the Log Analytics agent might not be configured correctly, causing the agent to fail when resolving the DNS URLs.
36+
* The network firewall requirements for the Log Analytics agent might not be configured correctly. This can cause the agent to fail when resolving the DNS URLs.
3737

38-
* Solution targeting is misconfigured and the machine is not receiving updates as expected.
38+
* Solution targeting is misconfigured and the machine isn't receiving updates as expected.
3939

40-
* You might also notice that the machine shows a status of `Non-compliant` under **Compliance**. At the same time, **Agent update readiness** reports the agent as `Disconnected`.
40+
* You might also notice that the machine shows a status of `Non-compliant` under **Compliance**. At the same time, **Agent Desktop Analytics** reports the agent as `Disconnected`.
4141

4242
### Resolution
4343

@@ -47,23 +47,23 @@ This error can occur for the following reasons:
4747

4848
* Go to [Network planning](../../azure-monitor/platform/log-analytics-agent.md#network-requirements) to learn about which addresses and ports must be allowed for the Log Analytics agent to work.
4949

50-
* Check for scope configuration problems. [Scope configuration](../automation-onboard-solutions-from-automation-account.md#scope-configuration) determines which machines get configured for the solution. If your machine is showing up in your workspace but not in the **Update Management** portal, you'll need to set the scope configuration to target the machines. To learn about the scope configuration, see [Onboard machines in the workspace](../automation-onboard-solutions-from-automation-account.md#onboard-machines-in-the-workspace).
50+
* Check for scope configuration problems. [Scope configuration](../automation-onboard-solutions-from-automation-account.md#scope-configuration) determines which machines get configured for the solution. If your machine is showing up in your workspace but not in the **Update Management Portal, you'll need to set the scope configuration to target the machines. To learn about the scope configuration, see [Onboard machines in the workspace](../automation-onboard-solutions-from-automation-account.md#onboard-machines-in-the-workspace).
5151

5252
* Remove the worker configuration by following the steps in [Deleting the hybrid runbook worker](../automation-hybrid-runbook-worker.md#remove-a-hybrid-runbook-worker).
5353

5454
## Scenario: Superseded update indicated as missing in Update Management
5555

5656
### Issue
5757

58-
Old updates are appearing in Update Management in the Automation account as missing even though they have been superseded. A superseded update is one that doesn't have to be installed because a later update that corrects the same vulnerability is available. Update Management ignores the superseded update and makes it not applicable in favor of the superseding update. For information about a related issue, see [Update is superseded](https://docs.microsoft.com/windows/deployment/update/windows-update-troubleshooting#the-update-is-not-applicable-to-your-computer).
58+
Old updates are appearing in Update Management in the Automation account as missing even though they have been superseded. A superseded update is one that you don't have to install because a later update that corrects the same vulnerability is available. Update Management ignores the superseded update and makes it not applicable in favor of the superseding update. For information about a related issue, see [Update is superseded](https://docs.microsoft.com/windows/deployment/update/windows-update-troubleshooting#the-update-is-not-applicable-to-your-computer).
5959

6060
### Cause
6161

6262
Superseded updates are not being correctly indicated as declined so that they can be considered not applicable.
6363

6464
### Resolution
6565

66-
When a superseded update becomes 100 percent not applicable, you should change the approval state of that update to `Declined`. To do this for all your updates:
66+
When a superseded update becomes 100 percent not applicable, you should change the approval state of that update to `Declined`. To change approval state for all your updates:
6767

6868
1. In the Automation account, select **Update Management** to view machine status. See [View update assessments](../manage-update-multi.md#view-an-update-assessment).
6969

@@ -77,7 +77,7 @@ When a superseded update becomes 100 percent not applicable, you should change t
7777

7878
6. Run the cleanup wizard to delete files from the declined updates.
7979

80-
7. For WSUS, manually clean all superseded updates to refresh the infrastructure.
80+
7. For Windows Server Update Services (WSUS), manually clean all superseded updates to refresh the infrastructure.
8181

8282
8. Repeat this procedure regularly to correct the display issue and minimize the amount of disk space used for update management.
8383

@@ -103,57 +103,95 @@ You might have defined a quota in your workspace that's been reached and that's
103103

104104
### Resolution
105105

106-
* Run the troubleshooter for [Windows](update-agent-issues.md#troubleshoot-offline) or [Linux](update-agent-issues-linux.md#troubleshoot-offline), depending on the OS.
106+
1. Run the troubleshooter for [Windows](update-agent-issues.md#troubleshoot-offline) or [Linux](update-agent-issues-linux.md#troubleshoot-offline), depending on the OS.
107107

108-
* Make sure that your machine is reporting to the correct workspace. For guidance on how to verify this aspect, see [Verify agent connectivity to Log Analytics](../../azure-monitor/platform/agent-windows.md#verify-agent-connectivity-to-log-analytics). Also make sure that this workspace is linked to your Azure Automation account. To confirm, go to your Automation account and select **Linked workspace** under **Related Resources**.
108+
2. Make sure that your machine is reporting to the correct workspace. For guidance on how to verify this aspect, see [Verify agent connectivity to Log Analytics](../../azure-monitor/platform/agent-windows.md#verify-agent-connectivity-to-log-analytics). Also make sure that this workspace is linked to your Azure Automation account. To confirm, go to your Automation account and select **Linked workspace** under **Related Resources**.
109109

110-
* Make sure that the machines show up in your Log Analytics workspace. Run the following query in the Log Analytics workspace that's linked to your Automation account:
110+
3. Make sure that the machines show up in your Log Analytics workspace. Run the following query in the Log Analytics workspace that's linked to your Automation account:
111111

112112
```loganalytics
113113
Heartbeat
114114
| summarize by Computer, Solutions
115115
```
116-
117-
If you don't see your machine in the query results, it hasn't recently checked in, which means there's probably a local configuration issue and you should [reinstall the agent](../../azure-monitor/learn/quick-collect-windows-computer.md#install-the-agent-for-windows). If your machine shows up in the query results, you need to verify the scope configuration specified in the next bulleted item in this list.
118116

119-
* Check for scope configuration problems. [Scope configuration](../automation-onboard-solutions-from-automation-account.md#scope-configuration) determines which machines get configured for the solution. If your machine is showing up in your workspace but not in the **Update Management** portal, you'll need to configure the scope configuration to target the machines. To learn how to do this, see [Onboard machines in the workspace](../automation-onboard-solutions-from-automation-account.md#onboard-machines-in-the-workspace).
117+
4. If you don't see your machine in the query results, it hasn't recently checked in. There's probably a local configuration issue and you should [reinstall the agent](../../azure-monitor/learn/quick-collect-windows-computer.md#install-the-agent-for-windows).
118+
119+
5. If your machine shows up in the query results, check for scope configuration problems. [Scope configuration](../automation-onboard-solutions-from-automation-account.md#scope-configuration) determines which machines are configured for the solution. If your machine is showing up in your workspace but not in the **Update Management Portal, you must configure the scope configuration to target the machines. To learn how to do this, see [Onboard machines in the workspace](../automation-onboard-solutions-from-automation-account.md#onboard-machines-in-the-workspace).
120120

121-
* In your workspace, run the following query:
121+
6. In your workspace, run the following query:
122122

123123
```loganalytics
124124
Operation
125125
| where OperationCategory == 'Data Collection Status'
126126
| sort by TimeGenerated desc
127127
```
128128

129-
If you get a `Data collection stopped due to daily limit of free data reached. Ingestion status = OverQuota` result, there's a quota defined on your workspace that's been reached and that has stopped data from being saved. In your workspace, go to **Usage and estimated costs** > **data volume management** and check your quota or remove it.
129+
7. If you get a `Data collection stopped due to daily limit of free data reached. Ingestion status = OverQuota` result, there's a quota defined on your workspace that's been reached and that has stopped data from being saved. In your workspace, go to **data volume management** under **Usage and estimated costs** and check your quota or remove it.
130130

131-
* If these steps don't resolve your problem, follow the steps in [Deploy a Windows Hybrid Runbook Worker](../automation-windows-hrw-install.md) to reinstall the Hybrid Worker for Windows. For Linux, follow the steps in [Deploy a Linux Hybrid Runbook Worker](../automation-linux-hrw-install.md).
131+
8. If your issue is still unresolved, follow the steps in [Deploy a Windows Hybrid Runbook Worker](../automation-windows-hrw-install.md) to reinstall the Hybrid Worker for Windows. For Linux, follow the steps in [Deploy a Linux Hybrid Runbook Worker](../automation-linux-hrw-install.md).
132132

133-
## <a name="rp-register"></a>Scenario: Unable to register Automation Resource Provider for subscriptions
133+
## <a name="rp-register"></a>Scenario: Unable to register Automation resource provider for subscriptions
134134

135135
### Issue
136136

137-
When you work with solutions in your Automation account, you encounter the following error:
137+
When you work with solutions in your Automation account, the following error occurs:
138138

139139
```error
140-
Error details: Unable to register Automation Resource Provider for subscriptions:
140+
Error details: Unable to register Automation Resource Provider for subscriptions
141141
```
142142

143143
### Cause
144144

145-
The Automation Resource Provider isn't registered in the subscription.
145+
The Automation resource provider isn't registered in the subscription.
146146

147147
### Resolution
148148

149-
To register the Automation Resource Provider, follow these steps in the Azure portal:
149+
To register the Automation resource provider, follow these steps in the Azure portal:
150150

151151
1. In the Azure service list at the bottom of the portal, select **All services**, and then select **Subscriptions** in the General service group.
152152
2. Select your subscription.
153153
3. Under **Settings**, select **Resource Providers**.
154154
4. From the list of resource providers, verify that the `Microsoft.Automation` resource provider is registered.
155155
5. If it's not listed, register the `Microsoft.Automation` provider by following the steps at [Resolve errors for resource provider registration](/azure/azure-resource-manager/resource-manager-register-provider-errors).
156156

157+
## <a name="update-missed-machines"></a>Scenario: Scheduled update with a dynamic schedule missed some machines
158+
159+
### Issue
160+
161+
Previewed machines included in an update do not all appear in the list of machines patched during a scheduled run.
162+
163+
### Cause
164+
165+
This issue can have one of the following causes:
166+
167+
* The subscriptions defined in the scope in a dynamic query aren't configured for the registered Automation resource provider.
168+
* The machines weren't available or didn't have the appropriate tags when the schedule was executed.
169+
170+
### Resolution
171+
172+
#### Subscriptions not configured for registered Automation resource provider
173+
174+
If your subscription is not configured for the Automation resource provider, you can't query or fetch information on machines in that subscription. Use the following steps to ensure the registration for the subscription.
175+
176+
1. In the [Azure Portal](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-providers-and-types#azure-portal), access the Azure service list.
177+
2. Select **All services**, and then select **Subscriptions** in the General service group.
178+
3. Find the subscription defined in the scope for your deployment.
179+
4. Under **Settings**, choose **Resource Providers**.
180+
5. Verify that the `Microsoft.Automation` resource provider is registered.
181+
6. If it's not listed, register the `Microsoft.Automation` provider by following the steps at [Resolve errors for resource provider registration](/azure/azure-resource-manager/resource-manager-register-provider-errors).
182+
183+
#### Machines not available or not tagged correctly when schedule executed
184+
185+
Use the following procedure if your subscription is configured for the Automation resource provider, but running the update schedule with the specified [dynamic groups](../automation-update-management-groups.md) missed some machines.
186+
187+
1. In the Azure portal, open the Automation account and select **Update Management**.
188+
2. Check [Update Management history](https://docs.microsoft.com/azure/automation/manage-update-multi#view-results-of-an-update-deployment) to determine the exact time when the update deployment was run.
189+
3. For machines that you suspect to have been missed by Update Management, use Azure Resource Graph to [locate machine changes](https://docs.microsoft.com/azure/governance/resource-graph/how-to/get-resource-changes#find-detected-change-events-and-view-change-details).
190+
4. Search for changes over a considerable period, such as one day, before the update deployment was run.
191+
5. Check the search results for any systemic changes, such as delete or update changes, to the machines in this period. These changes can alter machine status or tags so that machines aren't selected in the machine list when updates are deployed.
192+
6. Adjust the machines and resource settings as necessary to correct for machine status or tag issues.
193+
7. Rerun the update schedule to ensure that deployment with the specified dynamic groups includes all machines.
194+
157195
## <a name="components-enabled-not-working"></a>Scenario: Components for Update Management solution enabled, while VM continues to show as being configured
158196

159197
### Issue
@@ -285,7 +323,7 @@ When applicable, use [dynamic groups](../automation-update-management-groups.md)
285323
Heartbeat | where TimeGenerated > ago(30d) | distinct SourceComputerId, Computer, ComputerIP
286324
```
287325

288-
* After you find affected machines, edit the update deployments that target those machines, and then remove and re-add them so that `SourceComputerId` reflects the correct value.
326+
* After you find affected machines, edit the update deployments that target those machines, and then remove and readd them so that `SourceComputerId` reflects the correct value.
289327

290328
## <a name="updates-nodeployment"></a>Scenario: Updates are installed without a deployment
291329

@@ -397,12 +435,14 @@ The Update Agent (Windows Update Agent on Windows; the package manager for a Lin
397435

398436
### Resolution
399437

400-
Try to perform updates locally on the machine. If this fails, it typically means there's a configuration error with the update agent.
438+
Try to perform updates locally on the machine. If this operation fails, it typically means that there's an update agent configuration error.
401439

402-
This problem is frequently caused by network configuration and firewall issues. Try the following:
440+
This problem is frequently caused by network configuration and firewall issues. Use the following checks to correct the issue.
403441

404442
* For Linux, check the appropriate documentation to make sure you can reach the network endpoint of your package repository.
443+
405444
* For Windows, check your agent configuration as listed in [Updates aren't downloading from the intranet endpoint (WSUS/SCCM)](/windows/deployment/update/windows-update-troubleshooting#updates-arent-downloading-from-the-intranet-endpoint-wsussccm).
445+
406446
* If the machines are configured for Windows Update, make sure you can reach the endpoints described in [Issues related to HTTP/proxy](/windows/deployment/update/windows-update-troubleshooting#issues-related-to-httpproxy).
407447
* If the machines are configured for Windows Server Update Services (WSUS), make sure you can reach the WSUS server configured by the [WUServer registry key](/windows/deployment/update/waas-wu-settings).
408448

@@ -447,9 +487,9 @@ Possible causes:
447487

448488
If failures occur during an update run after it starts successfully, [check the job output](../manage-update-multi.md#view-results-of-an-update-deployment) from the affected machine in the run. You might find specific error messages from your machines that you can research and take action on. Update Management requires the package manager to be healthy for successful update deployments.
449489

450-
If specific patches, packages, or updates are seen immediately before the job fails, you can try [excluding](../automation-tutorial-update-management.md#schedule-an-update-deployment) those from the next update deployment. To gather log info from Windows Update, see [Windows Update log files](/windows/deployment/update/windows-update-logs).
490+
If specific patches, packages, or updates are seen immediately before the job fails, you can try [excluding](../automation-tutorial-update-management.md#schedule-an-update-deployment) these items from the next update deployment. To gather log information from Windows Update, see [Windows Update log files](/windows/deployment/update/windows-update-logs).
451491

452-
If you can't resolve a patching issue, make a copy of the following log file and preserve it for troubleshooting purposes before the next update deployment starts:
492+
If you can't resolve a patching issue, make a copy of the following log file and preserve it for troubleshooting purposes before the next update deployment starts.
453493

454494
```bash
455495
/var/opt/microsoft/omsagent/run/automationworker/omsupdatemgmt.log

0 commit comments

Comments
 (0)