More Info:

Ensure that unhealthy virtual machine instances are automatically deleted from the scale sets and new ones are created, using the latest instance model settings. Automatic Instance Repairs feature relies on health checks performed for individual instances running in a scale set. These virtual machine instances can be configured to emit an application health status using the Azure Application Health extension or a load balancer health probe. If a VM instance is found to be unhealthy, as reported by the Application Health extension or by the associated load balancer health probe, then the scale set performs the repair action by deleting the unhealthy instance and creating a new one to replace it.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of not having Automatic Instance Repairs enabled in Azure, you can follow these steps:

  1. Log in to the Azure portal and navigate to the Virtual Machines section.

  2. Select the virtual machine that you want to enable automatic instance repairs for.

  3. In the virtual machine’s overview page, click on the “Automation options” tab.

  4. In the “Automation options” tab, toggle the “Automatic Repairs” option to “On”.

  5. In the “Automatic Repairs” section, you can configure the settings for automatic repairs. You can choose to enable automatic repairs for the operating system or data disks, and set a repair grace period.

  6. Once you have configured the automatic repair settings, click on the “Save” button to apply the changes.

  7. Azure will now automatically detect and repair any issues with your virtual machine, helping to ensure maximum availability and uptime.

That’s it! By following these steps, you can remediate the misconfiguration of not having automatic instance repairs enabled in Azure.