Some resources for VMS are exhausted, and all the validations pass, but the spot deployment fails afterwards.
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"OverconstrainedAllocationRequest","message":"Allocation failed. VM(s) with the following constraints cannot be allocated, because the condition is too restrictive. Please remove some constraints and try again. Constraints applied are:\n - Low Priority VMs\n - Networking Constraints (such as Accelerated Networking or IPv6)\n - Preemptible VMs (VM might be preempted by another VM with a higher priority)\n - VM Size\n"}]}
Running the diagnostic on the failure :
There are currently not enough cores of the VM Size Family you requested in this region.
This is not a quota issue. To self-mitigate, please use a different VM Size Family or a different region.
When a VM creation fails, there are the networks and the disk objects created for this VM, requiring a deletion after the failures. The overall process is quite painful, as when we have a failure on a creation, then one needs a cleaning of the created "partial" resources.
How to know or look, in the portal, the availability without trying to instantiate new VM ? Is there any method to see the machine availability before sending a request to create a new VM ?
Same question applies for a VM set, which is useful to create multiple identical VMs.
Additionally, why is the verification pass when there is no resource available?
This issue is occurring often when creating spot instances, and it is very annoying for the VM management.