Course contentsShow
← Cloud and Infrastructure
Lesson 323 of 2,9896. Auto ScalingFree lesson

VMSS Upgrade Policies and Rolling Updates

Manual, automatic, and rolling upgrade policies for updating instances in scale sets.

VMSS Upgrade Policies and Rolling Updates

What you'll learn: How Azure automatically or manually updates instances in a scale set when you change the VM configuration.

When you modify your VMSS configuration (like changing the VM image or updating software), Azure needs to apply those changes to existing instances. Think of it like updating all the phones in a company—you could update them all at once (risky if something breaks), one at a time (slow but safe), or in batches (balanced approach).

The Three Upgrade Policies

Manual means Azure won't touch your running instances automatically. You decide when to update each VM individually. This gives you complete control but requires hands-on management—perfect when you need precise control over timing.

Automatic applies changes immediately to all instances as soon as you update the model. Azure doesn't wait; it just starts upgrading everything. This is fastest but riskiest—if the new configuration has issues, all instances get affected quickly.

Rolling is the middle ground. Azure updates instances in batches, waiting for each batch to pass health checks before moving to the next. It's like upgrading one row of servers at a time in a data center, ensuring the remaining rows keep serving traffic. You configure how many instances update simultaneously and how long to pause between batches.

Why This Matters

Without upgrade policies, you'd face a dilemma: update everything and risk total outage, or manually update hundreds of VMs. Rolling updates let Azure intelligently modernize your fleet while maintaining availability—just like VMSS scaling policies maintain capacity (lesson 322), upgrade policies maintain stability during changes.

Key Takeaway: VMSS upgrade policies control how and when configuration changes apply to running instances—manual gives you control, automatic prioritizes speed, and rolling balances safety with efficiency through batch updates.