Skip to content

Commit 9b61553

Browse files
authored
Merge pull request #104723 from mumian/0218-sku
incorporate customer comments
2 parents f0ca49e + 4559cc6 commit 9b61553

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

articles/azure-resource-manager/templates/error-sku-not-available.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: SKU not available errors
33
description: Describes how to troubleshoot the SKU not available error when deploying resources with Azure Resource Manager.
44
ms.topic: troubleshooting
5-
ms.date: 10/19/2018
5+
ms.date: 02/18/2020
66
---
77
# Resolve errors for SKU not available
88

9-
This article describes how to resolve the **SkuNotAvailable** error. If you're unable to find a suitable SKU in that region or an alternative region that meets your business needs, submit a [SKU request](https://aka.ms/skurestriction) to Azure Support.
9+
This article describes how to resolve the **SkuNotAvailable** error. If you're unable to find a suitable SKU in that region/zone or an alternative region/zone that meets your business needs, submit a [SKU request](https://aka.ms/skurestriction) to Azure Support.
1010

1111
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
1212

@@ -16,7 +16,7 @@ When deploying a resource (typically a virtual machine), you receive the followi
1616

1717
```
1818
Code: SkuNotAvailable
19-
Message: The requested tier for resource '<resource>' is currently not available in location '<location>'
19+
Message: The requested tier for resource '<resource>' is currently not available in location '<location>'
2020
for subscription '<subscriptionID>'. Please try another tier or deploy to a different location.
2121
```
2222

@@ -28,7 +28,7 @@ If you are deploying an Azure Spot VM or Spot scale set instance, there isn't an
2828

2929
## Solution 1 - PowerShell
3030

31-
To determine which SKUs are available in a region, use the [Get-AzComputeResourceSku](/powershell/module/az.compute/get-azcomputeresourcesku) command. Filter the results by location. You must have the latest version of PowerShell for this command.
31+
To determine which SKUs are available in a region/zone, use the [Get-AzComputeResourceSku](/powershell/module/az.compute/get-azcomputeresourcesku) command. Filter the results by location. You must have the latest version of PowerShell for this command.
3232

3333
```azurepowershell-interactive
3434
Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
@@ -37,13 +37,23 @@ Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
3737
The results include a list of SKUs for the location and any restrictions for that SKU. Notice that a SKU might be listed as `NotAvailableForSubscription`.
3838

3939
```powershell
40-
ResourceType Name Locations Restriction Capability Value
41-
------------ ---- --------- ----------- ---------- -----
42-
virtualMachines Standard_A0 centralus NotAvailableForSubscription MaxResourceVolumeMB 20480
43-
virtualMachines Standard_A1 centralus NotAvailableForSubscription MaxResourceVolumeMB 71680
44-
virtualMachines Standard_A2 centralus NotAvailableForSubscription MaxResourceVolumeMB 138240
40+
ResourceType Name Locations Zone Restriction Capability Value
41+
------------ ---- --------- ---- ----------- ---------- -----
42+
virtualMachines Standard_A0 centralus NotAvailableForSubscription MaxResourceVolumeMB 20480
43+
virtualMachines Standard_A1 centralus NotAvailableForSubscription MaxResourceVolumeMB 71680
44+
virtualMachines Standard_A2 centralus NotAvailableForSubscription MaxResourceVolumeMB 138240
45+
virtualMachines Standard_D1_v2 centralus {2, 1, 3} MaxResourceVolumeMB
4546
```
4647

48+
Some additional samples:
49+
50+
```azurepowershell-interactive
51+
Get-AzComputeResourceSku | where {$_.Locations.Contains("centralus") -and $_.ResourceType.Contains("virtualMachines") -and $_.Name.Contains("Standard_DS14_v2")}
52+
Get-AzComputeResourceSku | where {$_.Locations.Contains("centralus") -and $_.ResourceType.Contains("virtualMachines") -and $_.Name.Contains("v3")} | fc
53+
```
54+
55+
Appending “fc” at the end returns more details.
56+
4757
## Solution 2 - Azure CLI
4858

4959
To determine which SKUs are available in a region, use the `az vm list-skus` command. Use the `--location` parameter to filter output to location you are using. Use the `--size` parameter to search by a partial size name.

0 commit comments

Comments
 (0)