Best Practices to Minimize Downtime During Azure VM SKU Upgrade

MJ-1983 406 Reputation points
2024-12-17T09:41:46.49+00:00

Dear All,

I’m looking for best practices to minimize downtime while increasing the SKU size of our existing VMs running in Azure. Could you please provide the recommended approach for this task?

We have 4 servers (2 x A and 2 x B) configured in an availability set. The load balancer's backend pool has 2 NICs, each with one A and B servers.

The requirement is to increase the SKU from F series with 2 vCPUs to 4 vCPUs. What is the recommended approach to complete this process?

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

Accepted answer
  1. TP 102K Reputation points
    2024-12-17T11:10:50.01+00:00

    Hi,

    You can minimize downtime by first setting health probe to fail on VM you want to update, next give it time for any existing requests to complete, resize VM, when VM comes back up after resize set health probe back to success, repeat with next VM. In this way you are only updating one VM at a time and leaving the others operational.

    When I say "set health probe to fail on VM" I mean configure/modify that VM so that health probe will fail. For example, say you have health probe requestPath set to /healthcheck.aspx and this has script that returns HTTP status 200. If you temporarily rename healthcheck.aspx to healthcheck bak.aspx on the VM you want to update it will cause the probe to fail.

    https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview

    Please click Accept Answer and upvote if the above was helpful. If something is unclear please add a comment below.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

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.