Hi All.
Currently investigating why a windows 2019 server, configured to automatically update does not work. The VM is hosted in Azure, however I can see the following errors whenever the auto update tries to start.
Assessment failed due to this reason: "2 errors reported. The latest 3 errors are shared in details. To view all errors, review this log file on the machine:[C:\WindowsAzure\Logs\Plugins\Microsoft.CPlat.Core.WindowsPatchExtension\1.5.59]
"["Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0" at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()
at UpdateManagementAction.concrete.AssessmentAction.Assess(UpdateManagementResultSummary updateActionResultSummary)]."
"["Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0" at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()
at UpdateManagementAction.concrete.AssessmentAction.Assess(UpdateManagementResultSummary updateActionResultSummary)]."
Looking at the log files, I can see the following details.
[10188+00000001] 2023-12-21T22:15:02.9136215Z [Error] Windows Update API exceeded the max retry count assessing for updates with retriable error. Exiting after exceeding the [MaxRetryCount=4]. [ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65][MachineName=azsdevinf001]][ErrorMessage=Exception from HRESULT: 0x80072EFE][HResult=0][RetryCount=4]
[10188+00000001] 2023-12-21T22:15:02.9240238Z [Info] Assessment failed: [ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65][Operation=Assessing][ExceptionMessage="Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0"][StackTrace= at UpdateManagementAction.concrete.UpdateAssessment.WindowsUpdateSearch(IUpdateSearcher searcher, String searchCriteria, String machineName, String logEventName, Int32& retryCount)
at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()]
[10188+00000001] 2023-12-19T22:15:02.9136215Z [Error] Windows Update API exceeded the max retry count assessing for updates with retriable error. Exiting after exceeding the [MaxRetryCount=4]. [ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65][MachineName=azsdevinf001]][ErrorMessage=Exception from HRESULT: 0x80072EFE][HResult=0][RetryCount=4]
[10188+00000001] 2023-12-19T22:15:02.9240238Z [Info] Assessment failed: [ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65][Operation=Assessing][ExceptionMessage="Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0"][StackTrace= at UpdateManagementAction.concrete.UpdateAssessment.WindowsUpdateSearch(IUpdateSearcher searcher, String searchCriteria, String machineName, String logEventName, Int32& retryCount)
at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()]
[10188+00000001] 2023-12-19T22:15:02.9552963Z [Info] Assessment failed: [ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65][Operation=Assessing][ExceptionMessage="Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0"][StackTrace= at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()
at UpdateManagementAction.concrete.AssessmentAction.Assess(UpdateManagementResultSummary updateActionResultSummary)]
[10188+00000001] 2023-12-19T22:15:02.9552963Z [Verbose] Error message for assessment was added to error object. [OperationType=Assessment][ErrorMessage="Windows update API failed to assess the machine for available updates. Error:Exception from HRESULT: 0x80072EFE, Hresult:0" at UpdateManagementAction.concrete.UpdateAssessment.GetAvailableUpdates()
at UpdateManagementAction.concrete.AssessmentAction.Assess(UpdateManagementResultSummary updateActionResultSummary)][AssessmentErrorCount=1][ActivityId=f8a7cf0c-c28e-45f0-b365-477f95615e65]