Sunday, 25 December 2022

Azure maintenance configuration

 MAINTENANCE CONFIGURATION :

Creating a Maintenance Configurations lets you decide when to apply platform updates to various Azure resources. This topic covers the Azure PowerShell options for Dedicated Hosts and Isolated VMs. For more about benefits of using Maintenance Configurations, its limitations, and other management options, see Managing platform updates with Maintenance Configurations.

If you are looking for information about Maintenance Configurations for scale sets, see Maintenance Control for Virtual Machine Scale Sets.

Maintenance Configurations gives you the ability to control and manage updates for many Azure virtual machine resources since Azure frequently updates its infrastructure to improve reliability, performance, security or launch new features. Most updates are transparent to users, but some sensitive workloads, like gaming, media streaming, and financial transactions, can't tolerate even few seconds of a VM freezing or disconnecting for maintenance. Maintenance Configurations is integrated with Azure Resource Graph (ARG) for low latency and high scale customer experience.

Create a Maintenance Configuration

  1. Sign in to the Azure portal.

  2. Search for Maintenance Configurations.

    Screenshot showing how to open Maintenance Configurations

  3. Click Create.

    Screenshot showing how to add a maintenance configuration

  4. In the Basics tab, choose a subscription and resource group, provide a name for the configuration, choose a region, and select one of the scopes we offer which you wish to apply updates for. Click Add a schedule to add or modify the schedule for your configuration.

     Important

    Certain virtual machine types and schedules will require a specific kind of scope. Check out maintenance configuration scopes to find the right one for your virtual machine.

    Screenshot showing Maintenance Configuration basics

  5. In the Schedule tab, declare a scheduled window when Azure will apply the updates on your resources. Set a start date, maintenance window, and recurrence if your resource requires it. Once you create a scheduled window you no longer have to apply the updates manually. Click Next.

     Important

    Maintenance window duration must be 2 hours or longer.

    Screenshot showing Maintenance Configuration schedule

  6. In the Machines tab, assign resources now or skip this step and assign resources later after maintenance configuration deployment. Click Next.

  7. Add tags and values. Click Next.

    Screenshot showing how to add tags to a maintenance configuration

  8. Review the summary. Click Create.

  9. After the deployment is complete, click Go to resource.

Assign the configuration

On the details page of the maintenance configuration, click Machines and then click Add Machine.

Screenshot showing how to assign a resource

Select the resources that you want the maintenance configuration assigned to and click Ok. The VM needs to be running to assign the configuration. An error occurs if you try to assign a configuration to a VM that is stopped.

Screenshot showing how to select a resource

Check configuration

You can verify that the configuration was applied correctly or check to see any maintenance configuration that is currently assigned to a machine by going to the Maintenance Configurations and checking under the Machines tab. You should see any machine you have assigned the configuration in this tab.

Screenshot showing how to check a maintenance configuration

Check for pending updates

You can check if there are any updates pending for a maintenance configuration. In Maintenance Configurations, on the details for the configuration, click Machines and check Maintenance status.

Screenshot showing how to check pending updates

Delete a maintenance configuration

To delete a configuration, open the configuration details and click Delete.

Screenshot that shows how to delete a configuration.


No comments:

Post a Comment