Hi Prabhjot Singh ,
Thanks for reaching out to us on the Microsoft Q&A forum.
We understand from your query that you are experiencing a Zonal Allocation error and VM showing as Failed and not able to restart and start the machine.
This error ZonalAllocationFailed will occurs while creating or resizing virtual machines (VMs) in Azure, it means that there isn’t sufficient capacity for the requested VM size in the specified region.
Please follow these steps:
- If you’re using availability zones, try selecting another zone within the same region. It’s possible that a different zone has available capacity for the VM size you need.
- Resize a VM or add a VM to an existing availability set must be tried at the original cluster that hosts the existing availability set. The requested VM size is supported by the cluster, but the cluster may not currently have sufficient capacity.
- If the VM can be part of a different availability set, create a VM in a different availability set (in the same region). This new VM can then be added to the same virtual network.
Stop (deallocate) all VMs in the same availability set, then start all applicable VMs in batch. To stop: Click Resource groups > Resources > Virtual Machines > Stop. After all, VMs stop, navigate to Home > Virtual machines, add an Availability set filter and then select Group by availability set. Select all applicable VMs and click Start.
This step makes sure that a new allocation attempt is run and that a new cluster can be selected that has sufficient capacity.
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/allocation-failure
If you have any further queries, do let us know.
If the answer is helpful, please click "Accept Answer" and "Upvote it"