Server update using Update management center in automation account

Shivam Singh 220 Reputation points
2024-03-19T08:22:24.9333333+00:00

I have my azure windows servers patched each month using update management center in the automation account. After the execution of the jobs, I can see that the servers are non compliant and the error is MaintenanceWindowExceeded.

why this happened, and how to solve this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,907 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,240 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,095 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 24,561 Reputation points
    2024-03-19T08:34:28.1966667+00:00

    Hi @Shivam Singh

    Thank you for reaching out to the Microsoft Q&A platform.

    The error "MaintenanceWindowExceeded" occurs when the time required to install the updates exceeds the maintenance window that you have configured. To avoid this error, you can either increase the maintenance window or reduce the number of updates that are being installed during the update deployment.

    To increase the maintenance window, you can modify the update deployment schedule to allow more time for the updates to be installed. To do this, follow these steps:

    1. In the Azure portal, navigate to your Automation account and select "Update Management" from the left-hand menu.
    2. Select "Update deployments" and then select the deployment that is failing.
    3. In the "Update deployment" pane, select "Schedule update deployment" and then modify the maintenance window to a longer duration.

    If you want to reduce the number of updates that are being installed during the update deployment, you can modify the update classification settings to exclude certain types of updates. For example, you can exclude updates that are not critical or security-related. To do this, follow these steps:

    1. In the Azure portal, navigate to your Automation account and select "Update Management" from the left-hand menu.
    2. Select "Update deployments" and then select the deployment that is failing.
    3. In the "Update deployment" pane, select "Advanced" and then modify the update classification settings to exclude certain types of updates.

    I hope this helps! Let me know if you have any further questions.

    If I have answered your query, please click "Accept as answer" as a token of appreciation

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Yanhong Liu 9,910 Reputation points Microsoft Vendor
    2024-03-20T02:19:16.4866667+00:00

    Hello Shivam Singh,

    Thank you for posting on the Microsoft Community Forum.

    The MaintenanceWindowExceeded error that you encounter is usually because the update job is outside of the scheduled maintenance window. By default, Azure Update Management provides a 120-minute maintenance window for jobs, but you can increase it up to a maximum of 360 minutes. This error occurs if the update job does not complete within this timeframe.

    In order to fix this, you can try the following steps:

    Increase the time of the maintenance window: You can increase the maintenance window for a job in the Update Management Center to ensure that all updates are completed within this timeframe.

    Check for and optimize updates: Check for any updates that can be optimized, prioritize critical and security updates, and avoid running out of time by installing too many at once.

    Batch updates: If you have a large number of servers, consider updating in batches to avoid delays caused by simultaneous updates.

    If you're still having issues after the adjustment, we recommend that you review the troubleshooting guide for Azure Update Management, where you may have a more detailed solution.

    Reference Links: Troubleshoot Azure Automation Update Management issues | Microsoft Learn

    I hope you the information above is helpful.

    If you have any questions or concerns, please do not hesitate to let us know.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.