Hello @afkr
Thank you for reaching out to the Microsoft Q&A platform.
The spot price for Azure Virtual Machines is calculated based on supply and demand. The price changes based on the availability of unused capacity in the Azure datacenters. The price is set per hour and varies by region and VM size. You can view the current spot prices for each region and VM size on the Azure pricing page.
If you stop a spot VM, you will only be charged for the disk storage. You will not be charged for the compute resources while the VM is stopped. However, if the VM is deallocated due to capacity constraints, you will be charged for the time that the VM was running before it was deallocated.
When you use a spot VM, there is a chance that the VM may be evicted at any time due to capacity constraints. If the VM is evicted, you will not be charged for the time that the VM was not running. However, if the VM is evicted due to a policy violation, such as exceeding the maximum price that you set, you may be charged for the time that the VM was running before it was evicted.
In your case, if your NV4as v4 VM suddenly turns off because you are using a spot VM, there will be no fee for the compute resources while the VM is not running. However, you will still be charged for the disk storage. If the VM is evicted due to a policy violation, you may be charged for the time that the VM was running before it was evicted.
If this does answer your question, please accept it as the answer as a token of appreciation.