Share via

How to gracefully stop and restart applications running inside a VM during automated rightsizing operations

Sree Aravind M 20 Reputation points
2026-04-07T08:10:13.33+00:00

We are building an automated VM rightsizing solution that involves deallocating, resizing, and restarting Azure VMs based on utilization metrics. The challenge is that customer VMs may have various applications running inside them such as Docker containers, Java apps, databases, web servers, etc. When we deallocate the VM for resizing, these applications get stopped. After the VM restarts, there is no guarantee that applications will automatically come back up if the customer has not configured auto-start

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.