question

lukaki-9307 avatar image
0 Votes"
lukaki-9307 asked LeonLaude commented

Will I potentially lose my VM if I Stop (deal locate) it?

Specifically talking about the Compute resource, not storage. With GPU instances in such high demand, if I were to be able to get one, but then Stop (Deallocate) after use, will I be guaranteed the VM can Run next time? Or can other users pick that VM up leaving me to wait until the next time one frees up?

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
1 Vote"
LeonLaude answered LeonLaude commented

Hi @lukaki-9307,

If you deallocate your Azure VM, you will be able to resume your operations once you start your Azure VM again.

When an Azure VM is deallocated it basically releases the lease of the underlying hardware and is completely powered off, also you will not be billed for the virtual machine resource, once deallocated the Azure VM will appear as Stopped (Deallocated).

If you simply shut down your Azure VM from within the operating system, the Azure VM will be showing as Stopped. This will on the other hand not release the lease that the Azure VM has on the underlying hardware, which means the hardware is unavailable for other customers. And note that in this state you will be billed for the Azure VM even though it is marked as Stopped.


If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!


Best regards,
Leon

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the response Leon. Since it releases the hardware after Deallocating, other users could get that resource, right? Then I could potentially be VM-less the next time I try to run it?

0 Votes 0 ·

Others can get the resources yes once it is deallocated, however you will get reserve new resources once you start the VM again, this will never be an issue :-)

1 Vote 1 ·

So even though there's a GPU VM shortage, I don't have to worry about deallocation? I'm not too sure on the logistics of that, but that would be awesome if true.

For example, say Azure Compute only has 2 NC-type VMs available for a region. If one is in use and I create a VM and use the other one, no one else will be able to create that NC VM, right? But later, if I Deallocate my VM, it opens up for someone to grab it, but I won't be able to start my VM since the 2 VMs in the pool are used?

0 Votes 0 ·
Show more comments