Search code examples
azureazure-storage

Azure vm stopped unexpectedly, says "Storage account xxxxxxxx not found,...."


My Azure VM with Windows server 2016 stopped unexpectedly today. When I tried RDP today in my vm, it was saying 'machine unavailable'. So I logged in to Azure portal, and the VM was actually running. But when I tried to restart it, I got a notification saying

"Failed to restart virtual machine xxxxx. Error: Storage account xxxxxxxx not found. Ensure storage account is not deleted and belongs to the same location as the VM."

But, I was successfully using the vm till today. I didn't do anything in the Azure portal. The storage account with the vhd still exists (in the same resource group). I once deleted an unused storage account about 2 months ago, but the VM was running perfectly till today. I am not sure about anything that may have happened. The activity logs are empty.


Solution

  • Please Create a new storage account with the name – 'xxxxxxxx' in the same region as VM and then restart the VM to mitigate the failed error.


    Why?

    It is looking for already deleted storage account. This happens mostly for diagnostics storage accounts (I can't exactly say whether this is a diagnostics one without knowing the account name. diagnostics account names are something like xxxxxxdiag). Sometimes, disappearance of diagnostic account doesn’t cause the VM to be unreachable but the VM would just be marked as ‘failed’ over the portal.