An Azure service that is used to provision Windows and Linux virtual machines.
Hi Mia,
B1s won't work on that subscription whatever you do. It's a Bv1 size, and Bv1 is one of the series under capacity growth restrictions, which means new subscriptions can't deploy it at all.
B2ats_v2 and D2as_v5 are a separate issue. When az vm list-skus --all reports NotAvailableForSubscription with type Location, that size is blocked for your subscription across the whole region, and it isn't something you can change from your side (you've already ruled out policy, provider registration and permissions). Free Trial subscriptions tend to get fewer sizes in the busier regions, and as far as I know Microsoft doesn't publish which ones.
Before upgrading, I'd drop --all and use the default output instead, which only lists sizes without restrictions. A quick loop over a few regions shows what's actually open to you:
for r in uksouth ukwest northeurope swedencentral francecentral westus3 centralus eastus2; do
echo "== $r"
az vm list-skus --location $r --resource-type virtualMachines --size Standard_D2 --output table
done
Swap --size for Standard_B2 or Standard_E2 to check other families; the newer v6 and v7 sizes are worth a look. If something shows up, also check the Quotas page for that family and region, because a free trial starts with a small vCPU quota.
If nothing comes back in a region you can use, the documented fix for this error is a SKU/region access request through Help + support with the issue type "Service and subscription limits (quotas)". Free Trial subscriptions aren't eligible for limit or quota increases, though, so realistically that means upgrading to pay-as-you-go first and then filing that request if sizes are still blocked. Quota requests don't need a paid support plan, and when you upgrade you keep the unused credit until the end of the original 30 days.
References:
- https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available
- https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/lifecycle/retirements-and-capacity-restrictions
- https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#how-to-manage-limits