Resolving the “SkuNotAvailable” Error in Azure ARM Template Deployment
In Azure DevOps, while deploying resources using ARM (Azure Resource Manager) templates, you might encounter the following error:
##[error]SkuNotAvailable: The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D2s_v3' 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 requested VM size (Standard_D2s_v3
) is not available in the selected region (eastus
) due to capacity restrictions. Such capacity issues can be temporary or related to high demand in specific regions.
Why This Error Occurs
Azure allocates specific resources in each region for different VM sizes. When demand is higher than the available resources, certain VM sizes might not be available in your chosen region. This is often referred to as SKU availability issues.
Steps to Resolve the Error
There are several ways to address the SkuNotAvailable error. You can:
- Choose a different VM size that is available in the selected region.
- Deploy to a different region…