Azure Machine Learning Compute quota? - azure-machine-learning-service

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!

Related

How do you see the availabilty zones of an Azure Data Explorer Cluster?

It's mentioned in the Microsoft Docs that an Azure Data Explorer Cluster can be created with availablity zones, but not edited after creation.
We have an existing cluster where I am trying to see if it was created with availablity zones selected, however I cannot work out where to find this within the Azure Portal. Maybe a very dumb question but where can I go to check if my instance has availability zones set up?
Thanks
You see the availability zones of a particular Adx cluster either from portal, PowerShell cmdlets or through by using Azure management Rest API's.
Using Get-AzKustoCluster cmdlet to list the properties of the cluster.
get-azkustocluster -ResourceGroupName <ResourceGroupName> -Name <ClusterName> | select -Property Name,Zone
Cluster-Get REST API to get the information about cluster and it's properties.
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}?api-version=2022-07-07
From Azure Portal in the overview page under instance count as shown in below image

Failing to update the cluster

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.

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.

Find Available Virtual Machine Sizes in Azure Subscription Using ARM Powershell or Portal

I'm looking for a Powershell Azure Resource Manager (not Classic) version of this Stack Overflow Question
I am trying to find the available VM Sizes per subscription, not per region. I have two Azure subscriptions, one from MSDN, and one not. The Subscription from MSDN allows me to create DS2 v2 VMs, but the other one does not allow me to create any DS2 machines (even though I am also creating these machines in WestUS), so I have to use an L4. Apparently, this has something to do with what Microsoft calls a "tier".
I would like to know how to find all the available VM sizes in a subscription using the new ARM Powershell commands, if possible.
Alternatively, if there is a way to see a list of available VM sizes per subscription in the portal, that would also work.
I have tried to get this info using the following script:
Add-AzureRmAccount
Set-AzureRmContext -SubscriptionId $subscriptionID
Get-AzureRoleSize
But I get an error message ("No default description has been designated"). I suspect that this is because I am mixing ARM and ACM Powershell commands.
I have two Azure subscriptions, one from MSDN, and one not. The
Subscription from MSDN allows me to create DS2 v2 VMs, but the other
one does not allow me to create any DS2 machines (even though I am
also creating these machines in WestUS), so I have to use an L4.
By default, Azure supports 20 cores per region. You could use Get-AzureRmVMUsage -Location yourregion to check.
If you want to raise the limit or quota above the Default Limit, open an online customer support request at no charge. The limits can't be raised above the Maximum Limit value.
You also could see a list of available VM sizes per subscription in the portal.
Subscription-->Usage + quotas
Also, you could refer to this question.
Update:
If your cores does not reach all limit, it seems DsV2 SKU is not avilaibe in your subscription, please refer to this link to solve this issue.

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