Hello Grégory Meurant
Welcome to Microsoft Q&A.
- If you see "Allocation failed. We do not have sufficient capacity for the requested VM size in this zone," it just means Azure doesn’t have enough available resources for that VM size in the zone and region you picked.
- This isn’t an issue with your setup , it's just that Azure's infrastructure is full at the moment, which can happen with bigger or more unique VM sizes, or when demand is high.
Please follow these steps:
- Try switching to another Availability Zone or region to see if you can get capacity for your VM size.
- If you leave the AZ field blank, Azure will pick a zone for you automatically—no need to pin it.
- You could also check out different VM sizes with
az vm list-skus --location francecentral --zone 1. - Using VM Scale Sets is a good way to boost availability and let Azure handle zone distribution for you.
- Deallocate and restart VMs in your availability sets to give Azure another shot at allocating resources.
- Keep an eye on Azure Service Health for any updates about capacity in your region. If you’re using availability zones, sometimes just picking a different zone in the same region does the trick.
- When resizing a VM or adding one to an existing availability set, make sure you do it on the original cluster—the VM size should be supported, but capacity might be tight.
- If you’re cool with using a different availability set, just create a new VM in another set within the same region and hook it up to the same virtual network.
- To batch start VMs, first deallocate all VMs in the same availability set, then start them together.
- To stop VMs: Go to Resource groups > Resources > Virtual Machines > Stop.
- Once they’re all stopped, head to Home > Virtual machines, filter by Availability set, and group by availability set.
- Select all the VMs you want and hit Start.
This step makes sure that a new allocation attempt is run and that a new cluster can be selected that has sufficient capacity.
For detailed information, please check: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/allocation-failure
If you have any further queries, do let us know.
Thanks,
Manish Deshpande.