Failing to update the cluster - azure

For one of the test AKS clusters I am trying to update, it gives the following error.
Error: SkuNotAvailable.
Message: The requested VM size for resource "Following SKUs have failed for capacity restrictions:
Standard_D4s_v4' is currently not available in location 'SouthAfricaNorth'. Please try another size or deploy to a different location or different size.
I have checked and found that the quota is available in the subscription for this SKU and region selected.
Now cluster and pools went in to failed status

As far as I know, this error "SkuNotAvailable" is either a capacity issue in the region or that your SUBSCRIPTION doesn't have access to that specific size
You could once verify that by running the below Azure cli command
az vm list-skus --location centralus --size Standard_D --all --output table
If a SKU isn't available for your subscription in a location or zone that meets your business needs, submit a SKU request to Azure Support.
If the subscription doesn't have access, please reach out to azure subscription and quota mgmt support team through as support case to check and make sure it's available to use the particular size on your subscription in case they cannot enable that for any reason, there will be an appropriate explanation.
At this point there is nothing can be done at the AKS side.

Related

The template deployment failed with error when creating azure spot vm machine

I'm new to azure & trying to deploying a Spot Virtual Machine with windows server 2019 gen2. When I try to create virtual machine I got this error
"The template deployment failed with error: 'The resource with id: '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' failed validation with message: 'The requested size for resource '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' is currently not available in location 'eastus' zones '' for subscription '6b3845e9-2c4e-44c6-baaf-5efb515334c2'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'. (Code: InvalidTemplateDeployment)"
How can I solve this error? My account belong to "Azure for Students" subscription.
"The template deployment failed with error: 'The resource with id: '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud vcenter/providers/Microsoft.Compute/virtualMachines/EXsi'
failed validation with message: 'The requested size for resource '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloudvcenter/providers/Microsoft.Compute/virtualMachines/EXsi' is currently not available in location 'eastus' zones '' for subscription '6b3845e9-2c4e-44c6-baaf-5efb515334c2'. Please try another size or deploy to a different location or zones. Seehttps://aka.ms/azureskunotavailable for details.'.'. (Code: InvalidTemplateDeployment)"
This error causes due to
The VM size isn't available for a location or zone.
SKUNotAvailable-There is not enough Azure Spot Virtual Machine capacity in this location to create your VM or scale set instance.
If SKU is not available send an SKU request to Azure Support if an SKU is not offered for your subscription in a region or zone .
You check the available resources in selected region by using command Get-AzureRmComputeResourceSku then proceed to launch VM.
Get-AzureRmComputeResourceSku | where {$_.Locations -icontains "eastus"}
Output:
If the got actually available for your subscription\location combination you should use:
Get-AzVMSize -Location %location%
Output:
They also has some limitations in VM sizes are not supported for Azure Spot Virtual Machines
Reference:
Error codes for Azure Spot Virtual Machines and scale sets instances - Azure Virtual Machines | Microsoft Docs

Choose classic cloud service VM size according deployment region

I'm deploying classic cloud service in different regions using ARM templates, till now was using same VM type(Standard_D2_v2) for all deployments, but found out that this VM is not available in all regions where I'm going to deploy. What are options to choose VM type according deployment region?
Some regions do not have those available sizes. Can you change the VM sizes to the below
Standard_B1ls1. You might also have to check the cost if you using Micorosoft Azure
There might be an issue for that size in that region you are trying to deploy or it may not be available for you. So, you might be getting this error:
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.'.
To Check the sizes available for your subscription in that region you can use azure Powershell or azure CLI with the below commands :
az vm list-skus --location southcentralus --output table -- Azure CLI
Get-AzComputeResourceSku | where {$_.Locations -icontains "centralus"} -- Azure Powershell
After getting the output if in restriction you find NotAvailableForSubscription means you cannot use that vm size.

Unable to create a spot instance VM in Azure

I have been trying to create a spot instance Standard D2s v3 (2 vcpus, 8 GiB memory) VM in my MSDN Azure subscription. I have tried EastUS, EastUS2 and WestUS regions with the same result.
The requested size for resource
'/subscriptions/xxxxx/resourceGroups/dnd/providers/Microsoft.Compute/virtualMachines/windowsvm'
is currently not available in location 'eastus2' zones '' for
subscription 'xxxxx'. Please try another size or deploy to a different
location or zones. See https://aka.ms/azureskunotavailable for
details.'.'. (Code: InvalidTemplateDeployment)
Most like you should open a ticket to Microsoft, I was not able to create a spot instance for MSDN Subcription neither, but I was for pay-as-you-go Subscription, I choose the same size, region etc. Alternately you can try to contact Microsoft Q&A specifically for Azure Spot (https://learn.microsoft.com/en-us/answers/topics/azure-spot.html).

Azure Machine Learning Compute quota?

The Manage and request quotas for Azure resources documentation page states that the default quota depends "on your subscription offer type". The quota doesn't show up in Azure web portal. Is there a way to find out current quota values using SDK, CLI, REST API?
You probably want to try something like this command :
az vm list-usage --location eastus --out table
It would get you the core usage for the region, which is what is important for deployment of resources.
Other choices (az + Powershell) are available here.
Hope this helps!

How to get a list of available vm sizes in an azure location

I want to deploy a VM in microsoft's azure with a new size.
Usually I use a json template for the vm with size 'Standard_DS3'
Now I would like to have another one with size a3 'A3', but this causes an error
statusMessage:{"error":{"code":"InvalidParameter","target":"vmSize","message":"The value of parameter vmSize is invalid."}}
So I was wondering where can I find valid vm sizes for deployments in a location and the correct name for the deployment with a template file?
One can list all vm-sizes available in specific location(e.g westus) from Azure CLI 2.0 using following command
az vm list-sizes --location "westus"
Since you mentioned json templates in your question then I assume that you are using Azure Resource Manager to provision resources. If that's the case, you can use the following REST API endpoint to list all available virtual machine sizes in a region.
https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/{location}/vmSizes?api-version={api-version}
This information is accessible using Azure CLI, i.e.: az vm list-sizes --location "eastus"
You can also reference Microsoft documentation to see the list of virtual machine sizes. Sounds like you need to use the "Large" size in your template to provision an A3 Standard VM.
This isn´t always true. I´ve got into a situation where this command gives me a VM size that wasn´t truely avalaible for my location. This is a known issue of the Azure CLI.
Here is the statement from Azure support:
Cause: It is known that the command az vm list-sizes can expose sizes that are actually unavailable and we are working on that situation.
Resolution: The best option is to mitigate this is to cross check the information provided by that query with the restrictions that you have in the subscription that can be analyzed by the command az vm list-skus. For your scenario, you can see the SKU restrictions in West Europe by using the following:
az vm list-skus --location WestEurope --output table
You can use Get-AzureRmVMSize commandlet in PowerShell. This doesn't change too often and I have a .NET library which contains a snapshot of those https://github.com/aloneguid/microsoft-azure-strongtyped

Resources