Azure VM / Disable maintenance mode

ez1138 1 Reputation point
2023-03-12T23:32:01.8266667+00:00

Hi, I was trying some settings and selected "maintenance mode" for a machine group. How do I disable this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tech-Hyd-1989 5,816 Reputation points
    2023-03-13T05:07:48.43+00:00

    Hello ez1138

    Did you get a chance to follow the steps provided by vipullag?

    You can also follow the below steps using Azure portal web based

    Here are the steps:

    1. Log in to the Azure portal and navigate to the machine group for which you have enabled Maintenance Mode.
    2. Click on the "Maintenance Mode" tab.
    3. Under the "Maintenance Mode" section, click on the "Disable" button.
    4. You will be prompted to confirm that you want to disable Maintenance Mode. Click "Yes" to confirm.
    5. After a few moments, Maintenance Mode will be disabled for the selected machine group.

    Once Maintenance Mode is disabled, the machines in the group will no longer be excluded from automatic updates or be rebooted during scheduled maintenance windows. They will resume their normal update and reboot behavior according to the update policy applied to the machine group.

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. vipullag-MSFT 26,487 Reputation points Moderator
    2023-03-27T04:32:44.2733333+00:00

    Hello ez1138

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    You can do this from Azure Portal, CLI & PowerShell.

    With Azure CLI by using the command az maintenance configuration delete and Azure PowerShell by using the command Remove-AzMaintenanceConfiguration you can disable maintenance mode for a machine group in Azure.

    From Azure Portal, by going to the details page of the maintenance configuration, clicking on Machines, and then clicking on the Disable button.

    Hope this helps.

    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.