An Azure service that is used to provision Windows and Linux virtual machines.
Sree Aravind M hi & thx for using Q&A platform )
so back to urs question... this is not Azure problem, this is guest OS problem. Azure just stops the VM like pulling power. it has zero idea whats running inside, so if apps dont auto start they stay dead after resize. expected
there is no universal “graceful stop all apps” button bc every VM is different. What people usually do either enforce app-level restart logic like
systemd services for linux
windows services / scheduled tasks
docker with restart=always
so after boot everything comes back automatically, or u handle it yourself before resize :) Run or Custom Script to execute inside VM
stop apps gracefully (docker stop, systemctl stop, etc)
then deallocate
after start run another script to bring everything back
basically u orchestrate it. If u wanna do it properly at scale use something like
Azure Automation / Runbooks
or your own agent inside VM
so flow becomes
call script inside VM graceful shutdown
deallocate + resize
start VM
call script start apps
but yeah key point
Azure wont manage app lifecycle inside VM for u, ever
rgds,
Alex