You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/error-sku-not-available.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
title: SKU not available errors
3
3
description: Describes how to troubleshoot the SKU not available error when deploying resources with Azure Resource Manager.
4
4
ms.topic: troubleshooting
5
-
ms.date: 10/19/2018
5
+
ms.date: 02/18/2020
6
6
---
7
7
# Resolve errors for SKU not available
8
8
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.
@@ -16,7 +16,7 @@ When deploying a resource (typically a virtual machine), you receive the followi
16
16
17
17
```
18
18
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>'
20
20
for subscription '<subscriptionID>'. Please try another tier or deploy to a different location.
21
21
```
22
22
@@ -28,7 +28,7 @@ If you are deploying an Azure Spot VM or Spot scale set instance, there isn't an
28
28
29
29
## Solution 1 - PowerShell
30
30
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.
32
32
33
33
```azurepowershell-interactive
34
34
Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
@@ -37,13 +37,23 @@ Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
37
37
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`.
38
38
39
39
```powershell
40
-
ResourceType Name Locations Restriction Capability Value
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
+
47
57
## Solution 2 - Azure CLI
48
58
49
59
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