@mwhite , Thank you for posting this question in Microsoft Q&A.
Based on the error mentioned (Exception: 'The term 'Get-AutomationVariable'), it seems that these 2 machines are no longer connected/recognized as hybrid worker for the Azure Automation account. After you enable Update Management, any Windows machine that's directly connected to your Log Analytics workspace is automatically configured as a system Hybrid Runbook Worker to support the runbooks that support Update Management. For more details, see Update Management Hybrid Worker groups.
You can verify if this machine is added to Azure Automation Hybrid worker group by following the path below:
- Azure Automation --> Hybrid worker groups
- Select "System hybrid worker groups" tabs
- select the group names --> "Hybrid worker". There may be multiple groups available, try to check if the impacted machines are listed in there.
I would suggest using the "Offline troubleshooter script" available here to get details of the configuration on the machine and if something is missing. For more details, see Update Management: Troubleshoot WIndows update agent issues. Pay attention to the "CheckResult" property for each test and if you see something not with "Passed" status, it could point to the actual issue. Most commonly, the issue is related to broken network connectivity.
You should also check the "OperationsManager" logs in the EventViewer for the errors being reported. Based on the error/warning in there, further troubleshooting steps can be taken but the output from script above and the events in event log will serve as the starting points.
Hope this helps.
If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.