Skip to content

Commit c743293

Browse files
Merge pull request #200349 from TimShererWithAquent/t581147ae
Edits to improve SEO and usability
2 parents 061822b + 2f4f6dc commit c743293

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

articles/cloud-services/cloud-services-troubleshoot-location-not-found-for-role-size.md

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
---
2-
title: Troubleshoot LocationNotFoundForRoleSize when deploying a Cloud service (classic) to Azure | Microsoft Docs
2+
title: Troubleshoot allocation failures for Cloud service in Azure
33
description: This article shows how to resolve a LocationNotFoundForRoleSize exception when deploying a Cloud service (classic) to Azure.
44
services: cloud-services
55
author: hirenshah1
66
ms.author: hirshah
77
ms.service: cloud-services
88
ms.topic: troubleshooting
9-
ms.date: 02/22/2021
10-
ms.custom: devx-track-azurepowershell
9+
ms.date: 06/06/2022
10+
ms.custom:
11+
- devx-track-azurepowershell
12+
- kr2b-contr-experiment
1113
---
1214

13-
# Troubleshoot LocationNotFoundForRoleSize when deploying a Cloud service (classic) to Azure
15+
# Troubleshoot LocationNotFoundForRoleSize when deploying a Cloud service to Azure
1416

1517
[!INCLUDE [Cloud Services (classic) deprecation announcement](includes/deprecation-announcement.md)]
1618

17-
In this article, you'll troubleshoot allocation failures where a Virtual Machine (VM) size isn't available when you deploy an Azure Cloud service (classic).
19+
This article troubleshoots allocation failures where a virtual machine (VM) size isn't available when you deploy an Azure Cloud service (classic).
1820

1921
When you deploy instances to a Cloud service (classic) or add new web or worker role instances, Microsoft Azure allocates compute resources.
2022

21-
You may occasionally receive errors during these operations even before you reach the Azure subscription limit.
23+
You might receive errors during these operations even before you reach the Azure subscription limit.
2224

2325
> [!TIP]
2426
> The information may also be useful when you plan the deployment of your services.
2527
2628
## Symptom
2729

28-
In Azure portal, navigate to your Cloud service (classic) and in the sidebar select *Operation log (classic)* to view the logs.
30+
In the [Azure portal](https://portal.azure.com/), navigate to your Cloud service (classic) and in the sidebar select **Operation log (classic)** to view the logs.
2931

30-
![Image shows the Operation log (classic) blade.](./media/cloud-services-troubleshoot-location-not-found-for-role-size/cloud-services-troubleshoot-allocation-logs.png)
32+
:::image type="content" source="./media/cloud-services-troubleshoot-location-not-found-for-role-size/cloud-services-troubleshoot-allocation-logs.png" alt-text="Screenshot shows the Operation log (classic) pane.":::
3133

32-
When you're inspecting the logs of your Cloud service (classic), you'll see the following exception:
34+
When you inspect the logs of your Cloud service (classic), you'll see the following exception:
3335

3436
|Exception Type |Error Message |
3537
|---------|---------|
36-
|LocationNotFoundForRoleSize |The operation '`{Operation ID}`' failed: 'The requested VM tier is currently not available in Region (`{Region ID}`) for this subscription. Please try another tier or deploy to a different location.'.|
38+
|`LocationNotFoundForRoleSize` |The operation '`{Operation ID}`' failed: 'The requested VM tier is currently not available in Region (`{Region ID}`) for this subscription. Please try another tier or deploy to a different location.'.|
3739

3840
## Cause
3941

40-
There's a capacity issue with the region or cluster that you're deploying to. The *LocationNotFoundForRoleSize* exception occurs when the resource SKU you've selected (VM size) isn't available for the region specified.
42+
There's a capacity issue with the region or cluster that you're deploying to. The `LocationNotFoundForRoleSize` exception occurs when the resource SKU you've selected, the virtual machine size, isn't available for the region specified.
4143

42-
## Solution
44+
## Find SKUs in a region
4345

44-
In this scenario, you should select a different region or SKU to deploy your Cloud service (classic) to. Before deploying or upgrading your Cloud service (classic), you can determine which SKUs are available in a region or availability zone. Follow the [Azure CLI](#list-skus-in-region-using-azure-cli), [PowerShell](#list-skus-in-region-using-powershell), or [REST API](#list-skus-in-region-using-rest-api) processes below.
46+
In this scenario, you should select a different region or SKU for your Cloud service (classic) deployment. Before you deploy or upgrade your Cloud service (classic), determine which SKUs are available in a region or availability zone. Follow the [Azure CLI](#list-skus-in-region-using-azure-cli), [PowerShell](#list-skus-in-region-using-powershell), or [REST API](#list-skus-in-region-using-rest-api) processes below.
4547

4648
### List SKUs in region using Azure CLI
4749

48-
You can use the [az vm list-skus](/cli/azure/vm
49-
#az-vm-list-skus) command.
50+
You can use the [az vm list-skus](/cli/azure/vm#az-vm-list-skus) command.
5051

5152
- Use the `--location` parameter to filter output to location you're using.
5253
- Use the `--size` parameter to search by a partial size name.
5354
- For more information, see the [Resolve error for SKU not available](../azure-resource-manager/templates/error-sku-not-available.md#solution-2---azure-cli) guide.
5455

55-
**For example:**
56+
This sample command produces the following results:
5657

57-
```azurecli
58-
az vm list-skus --location southcentralus --size Standard_F --output table
59-
```
58+
```azurecli
59+
az vm list-skus --location southcentralus --size Standard_F --output table
60+
```
6061

61-
**Example results:**
62-
![Azure CLI output of running the 'az vm list-skus --location southcentralus --size Standard_F --output table' command, which shows the available SKUs.](./media/cloud-services-troubleshoot-constrained-allocation-failed/cloud-services-troubleshoot-constrained-allocation-failed-1.png)
62+
:::image type="content" source="./media/cloud-services-troubleshoot-constrained-allocation-failed/cloud-services-troubleshoot-constrained-allocation-failed-1.png" alt-text="Screenshot shows the Azure CLI output of running the command, which shows the available SKUs.":::
6363

6464
#### List SKUs in region using PowerShell
6565

@@ -69,21 +69,19 @@ You can use the [Get-AzComputeResourceSku](/powershell/module/az.compute/get-azc
6969
- You must have the latest version of PowerShell for this command.
7070
- For more information, see the [Resolve error for SKU not available](../azure-resource-manager/templates/error-sku-not-available.md#solution-1---powershell) guide.
7171

72-
**For example:**
72+
This command filters by location:
7373

7474
```azurepowershell
7575
Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
7676
```
7777

78-
**Some other useful commands:**
79-
80-
Filter out the locations that contain size (Standard_DS14_v2):
78+
Find the locations that contain the size `Standard_DS14_v2`:
8179

8280
```azurepowershell
8381
Get-AzComputeResourceSku | where {$_.Locations.Contains("centralus") -and $_.ResourceType.Contains("virtualMachines") -and $_.Name.Contains("Standard_DS14_v2")}
8482
```
8583

86-
Filter out all the locations that contain size (V3):
84+
Find the locations that contain the size `V3`:
8785

8886
```azurepowershell
8987
Get-AzComputeResourceSku | where {$_.Locations.Contains("centralus") -and $_.ResourceType.Contains("virtualMachines") -and $_.Name.Contains("v3")} | fc
@@ -129,4 +127,4 @@ For more allocation failure solutions and to better understand how they're gener
129127
> [!div class="nextstepaction"]
130128
> [Allocation failures - Cloud service (classic)](cloud-services-allocation-failures.md)
131129
132-
If your Azure issue isn't addressed in this article, visit the Azure forums on [MSDN and Stack Overflow](https://azure.microsoft.com/support/forums/). You can post your issue in these forums, or post to [@AzureSupport on Twitter](https://twitter.com/AzureSupport). You also can submit an Azure support request. To submit a support request, on the [Azure support](https://azure.microsoft.com/support/options/) page, select *Get support*.
130+
If your Azure issue isn't addressed in this article, visit the Azure forums on [MSDN and Stack Overflow](https://azure.microsoft.com/support/forums/). You can post your issue in these forums, or post to [@AzureSupport on Twitter](https://twitter.com/AzureSupport). You also can submit an Azure support request. To submit a support request, on the [Azure support](https://azure.microsoft.com/support/options/) page, select **Get support**.

articles/cloud-services/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
href: cloud-services-dotnet-get-started.md
1313
- name: Example Python for Visual Studio Cloud Service
1414
href: cloud-services-python-ptvs.md
15+
- name: Troubleshoot LocationNotFoundForRoleSize
16+
href: cloud-services-troubleshoot-location-not-found-for-role-size.md
1517
- name: Concepts
1618
items:
1719
- name: Security baseline

0 commit comments

Comments
 (0)