Reputation: 337
I am trying to provision Azure Virtual Machines to the same availability set one after the other. I see this error when trying to a provision in Australia East.
Provisioning failed. Allocation failed. Please try reducing the VM size or
number of VMs, retry later, or try deploying to a different Availability Set
or different Azure location.. AllocationFailed
Upvotes: 0
Views: 6068
Reputation: 407
As a quick workaround I was able to simply change the Size of the Virtual Machine. I found one which is very similar in terms of specs and price. After resizing, I was able to Start the VM successfully.
Upvotes: 0
Reputation: 13974
This error means you are try to adding a big size VM to the Availability set, the VM size bigger than other VMs, that host does not support this VM size.
We should stop all the VMs in the availability set. Then add this new VM to it, then start the other VMs.
Here a blog about add VM to Azure availability set, please refer to it.
Update:
Please try to create new VM and at the same time to create Availability set, like this:
Upvotes: 1