Check if your Azure VM is about to reboot

Quickly check from inside your Azure VM if its about to reboot.

John Savill

February 7, 2016

1 Min Read
Check if your Azure VM is about to reboot

Q. How can I check if my Azure VM is about to reboot?

A. The Azure fabric has introduce the ability to query the metadata of the VM from inside the VM which will show if any maintenance operation is about to happen in the next 5 minutes. Within the Azure VM navigate to URL:

http://169.254.169.254/metadata/v1/maintenance

If the returned data is {} then no maintenance activities are happening within the next 5 minutes. If your VM is about to reboot then an EventID and EventCreationTime will be returned that notifies you of the impending reboot.

More data can be found at https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-metadata-service/.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like