Azure Troubleshooting: VM is not in state that allows Backups
Error
A notification Mail from Azure telling me that the backup is failed for one of my VM.
Description
VM is not in a state that allows backups.
Recommended action(s) : Please check if VM is in Running or Shut-down state. If VM is in a transient state, wait until it reaches Running or Shut-down state and retry the operation.
Time : 2018-02-14 22:39:54 GMT
Azure Portal is showing that the impacted VM is running. I suspected that there was some issue with it. I checked the Time of the error and then I verified the activity log for the last 24 hours. I noticed that when the backup Management Service is launched, a user after 4 minutes, deallocated the VM.
So, Azure Backup cannot backup a VM in transcient state, the VM must be in running or shudown state.
The explanation in the notification Mail is now pretty clear :
Recommended action(s) :
Please check if VM is in Running or Shut-down state. If VM is in a transient state, wait until it reaches Running or Shut-down state and retry the operation.