Resolving the “SkuNotAvailable” Error in Azure ARM Template Deployment
When deploying a virtual machine (VM) in Azure using an ARM (Azure Resource Manager) template, you may encounter the following error:
##[error]SkuNotAvailable: The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_B2s' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details.
This error indicates that the specific VM size (Standard_B2s
) is not available in the selected region (eastus
) due to capacity restrictions. It’s a common issue that can occur when the region experiences high demand, and certain VM sizes become temporarily unavailable.
Why Does This Error Occur?
Azure manages its compute resources across various regions, and each region has specific VM sizes available based on demand and capacity. When you attempt to deploy a VM in a region with limited availability for the requested SKU, Azure returns the “SkuNotAvailable” error. This can happen for various reasons:
- High demand in the selected region.
- Temporary capacity limitations for specific VM sizes.
- The requested VM SKU is not…