Using the new Quota REST API (2023)

Devarayulu Tula, Senior Program Manager

Rahul Singh, Senior Software Engineer

Automation is a key aspectDevOpsand agile development. On January 19Th,we publishedgeneral availability of the Azure Quota REST API. The Quotas API allows you to automate quota management and programmatically integrate it into your applications, tools, and existing systems. Now you can move your applications and systems to the cloud faster and have more time to focus on your core business.

In this blog post, we'll give you an overview of the recently released Quota REST API and a step-by-step tutorial with example code that shows how to use it when you hit your quota limit. In short, for the rest of this blog we will be using the Quota API.

(Video) 10 Quota setup and analysis using rest API

What are quotas?

Odds, also calledservice limitationsare the maximum values ​​for resources, actions, and items in an Azure account.

AAzure subscriptionis an agreement between the customer and Microsoft that enables the customer to obtain Azure services. Subscription prices and related terms are determined by the offer selected for the subscription. There is one for a specific subscription, region and SKUZadana quota. Each Azure service defines its own quotas and default values. Here are some things to keep in mind about prospects:

  • Just like credit cards have credit limits, Azure services also have limits. A quota is a consumption limit for an Azure resource.
  • The quota is distributed across all services in each subscription. When estimating your capacity needs, you should calculate the usage of all services.
  • Some services have adjustable limits. The limit can be increased above the default limit, but not over the maximum limit. Default limits differ depending on the type of offer category, eg Eg. free trial, pay-as-you-go and VM series (eg Dv4, Fsv2 and Easv4). SeeLimits, quotas, and limits for Azure subscriptions and servicesDetails of standard and maximum limits can be found here.

Why Quota API?

To compete effectively, organizations must create an environment in which developers can perform at their best and in which operations teams can confidently meet the reliability, security, and compliance requirements their organizations expect. That requires advanced cloud capabilities designed to support modern constructs like containers, DevOps, APIs, and managed services—and the flexibility to work across environments and teams. The Quotas API can address this need to automate quota management and enable the integration of quota management with your existing tools and applications. For more information on the business benefits of using the Quota API, see ourzapis na bloguim Microsoft Azure blog.

(Video) Azure Quota API - invoking REST APIs in Postman and comparing Microsoft.Quota and Microsoft.Capacity

Using the Quota API

The Azure Quotas API is a one-stop shop for automating the process of viewing and managing quotas and eliminating the manual process of creating and managing quotas through support tickets in the Azure portal. Using the Azure Quotas API, you can easily determine your current quota usage and request increases. The current version of the Quota API allows you to manage service limits (quotas) of Azure Virtual Machines (Cores/vCPU) and Azure Machine Learning. In future releases, you can use this feature to query current usage and quotas for additional Azure services and resources.

Using the new Quota REST API (1)Automate Azure quota management

usage scenario

This use case demonstrates how to use the Quotas API to automate quota management to improve agility, developer speed, and efficiency in IT operations.

Anna is a lead developer on the Contoso Cloud Readiness team. Contoso is an A/B testing company that tests firmware for cloud hardware approval. During testing, Anna needs to create many virtual machines (VMs) to test the firmware on a large scale. One of the challenges Anna faces is that she cannot provision new virtual machines because the quota limit has been reached. This happens frequently and unexpectedly due to the inorganic growth of VM usage in their organization. To continue her workflow, Anna manually creates a support ticket to request a quota increase. To improve the efficiency of its workflow, it now uses the Azure Quota API to automate quota requests and verification operations from start to finish. It can check usage and monitor when its virtual machines reach their quota limit and automatically send quota requests to increase the limit. Anna's manual quota request process is now fully automated. This has greatly helped their operations by paving the way for continuous firmware testing.

When should a quota increase be requested?

The Quotas API allows you to determine your current quota limit and usage metrics and compare them to your quota needs. To determine when to request a quota increase, follow this workflow:

(Video) Automating Quota management with Azure Quota rest API | Managing Transitional Events | DevOps
  1. Determine how many quotas are left:
    remaining quota = quota limit - current usage
  1. Request a quota increase if the remaining quota is less than the quota you need. If the remaining quota is more than the quota you need, you do not need to request a quota increase.

Quota increase request

Here is an example showing how to determine if a quota increase is needed and how to request it.

Anna plans to launch a new service in the eastern region of the US (change). It requires 20 general-purpose VMs for testing and development that provide a balanced mix of vCPUs, memory, and local disk. She chose 20 D3 v2 VMs (StandardD3V2Familija) that will support most of their production workloads. It also requires 5 NDs series VMs (StandardNDSFobitelj) to support parallel computing and machine learning workloads.

After the initial deployment, Anna follows these steps to review the current usage of her NDs series VMs and determine if she should request a quota increase for the NDs series SKUs in the US East region.

  1. Anna checks the remaining quota limit usingQuota API GET operation. Anna makes this GET request:
    and get this answer:
    { "properties": { "limit": 10, // Kontingentlimit "unit": "Count", "currentValue": 5, // Aktuelle Verwendung "name": { "value": "standardNDSFamily", "localizedValue" : „Standardni NDS obiteljski vCPU-ovi“ } }}
  2. It uses the GET response to determine how many quotas are left for that VM:
    remaining quota = quota limit - current usage = 10 - 5 = 5
  3. It needs a quota of 10 for VM, so it should be requestedQuota increase by 5. So your new quota limit is:
    new quota limit = old quota limit + quota increase = 10 + 5 = 15
  4. Anna uses the Quota API PUT operation to request a quota increase of 5 with this PUT request:

    and request text:

    (Video) Quota by API Product

    { "properties": { "limit": 15, // Neues Limit "unit": "Count", "name": { "value": "standardNDSFamily" } } }

If there is a quota error

If you get a quota error after an increase request, try a lower number instead of retrying a higher number. Using a higher number can still lead to errors. If you're still getting quota errors, follow the instructions atHow to create a support ticket from the Azure portalor useAzure-Supportticket-REST-APIto create it programmatically.

Share your feedback with us

Let us know if you have any feedback or issues regarding the Quota API on Stack Overflow or GitHub.

package overflow

To ask a question about the Quota REST API on Stack Overflow, go toStack Overflow-Home Pageand clickAsk a questionin the upper right corner of the page. Enter a title and description of your question. Under, underkeywordsEnter at least one of these tags:Quote,Share-API, orAzure quota. For tips on preparing questions seeHow do I ask a good question?

(Video) Invoke API endpoint using API Key | Quota [Hindi] - API Gateway tutorial p16


To report an issue with the Quota REST API on GitHub, clicksubjectat the top of the page for the language or interface you're using. For example, if you are using the Microsoft Azure SDK for .NET, go toSDK for .NET GitHub repository, clicksubjectnew problemSelect the type of problem (bug report, feature request, question/query template,orReport a vulnerability) and clickStart of work.If none of these options match your problem, clickOpen an empty topicbottom left of the page.

find out more

Check out oursQuota API product documentationFind technical details about currently supported Quota API REST operations, how to find quota usage, request a quota increase, and how to handle quota errors. Visit usPost on the Microsoft Azure blogfor the business benefits of using the Quota API.


How do I change my quota in Azure? ›

Request a quota increase
  1. Sign in to the Azure portal.
  2. Enter "quotas" into the search box, and then select Quotas.
  3. On the Overview page, select a provider, such as Compute. ...
  4. On the My quotas page, under Quota name, select the quota you want to increase.
May 9, 2023

What is API management quota vs rate limit? ›

Rate limits vs quota management. There are two different types of rate limiting, each with different use cases. Short term rate limits are focused on protecting servers and infrastructure from being overwhelmed. Whereas, long term quotas are focused on managing the cost and monetization of your API's resources.

How do I increase my Azure batch quota? ›

To request a quota increase using the Azure portal, first open a support request:
  1. Sign in to the Azure portal.
  2. Select or search for Quotas.
  3. On the Quotas page, select Increase my quotas.
Dec 20, 2021

How do I monitor quotas in Azure? ›

To check usage and manage a subscription quota, you will need to perform the following steps:
  1. Go to the subscription you are interested in.
  2. Click on the Usage + quotas blade. To do so, you can search for Subscriptions in the search box at the top of the Azure portal:

Which command should you use to change the quota settings? ›

Use the setquota command to set quotas for users, user groups, and file sets.

How do I increase my public IP quota in Azure? ›

To raise the limit or quota for your subscription, go to the Azure portal, file a Service and subscription limits (quotas) support ticket, and set the quota type to Networking. For more information, see How to file a support ticket for a quota increase.

How do I increase my API quota? ›

Increase the quota for an API

Go to Google Cloud and sign in as a Google Workspace super administrator. Under Project, select the project you're using for the migration. Quotas. Using the checkboxes, select one or more quotas to edit, then click Edit Quotas.

How do I increase my Azure storage capacity? ›

  1. Sign in to the Azure portal.
  2. Navigate to your storage account.
  3. In the Settings section, select Configuration.
  4. Under Account kind, select on Upgrade.
  5. Under Confirm upgrade, enter the name of your account.
  6. Select Upgrade at the bottom of the blade.
Mar 9, 2023

How do I increase my device limit in Azure? ›

You can allow a user to enroll up to 15 devices. To set a device limit restriction, sign in to Microsoft Intune admin center. Then go to Devices > Enrollment restrictions.

What is the quota limit for API? ›

General quota limits

10 queries per second (QPS) per IP address. In the API Console, there is a similar quota referred to as Requests per 100 seconds per user. By default, it is set to 100 requests per 100 seconds per user and can be adjusted to a maximum value of 1,000.

What are the two types of API limits? ›

In API Connect, rate limits can be defined as unlimited, or with a specified number of calls per second, minute, hour, day, or week. Rate limits can be "hard" (enforced) or "soft".

Should I rate limit my API? ›

In the realm of API management, rate limiting is one of the fundamental aspects of managing traffic to your APIs. It is important for quality of service, efficiency and security. It is one of the easiest and most efficient ways to control traffic to your APIs.

What is the Azure policy for quotas? ›

By default, a maximum of 50,000 Azure AD resources can be created in a single tenant by users of the Azure Active Directory Free edition. If you have at least one verified domain, the default Azure AD service quota for your organization is extended to 300,000 Azure AD resources.

Which command can be used to Monitor quota usage? ›

Display the quotas and disk use for all users on one or more file systems by using the repquota command.

What is the quota type in Azure? ›

Quotas define the limits of resources that a user subscription can provision or consume. For example, a quota might allow a user to create up to five virtual machines (VMs). Each resource can have its own types of quotas.

How do I increase the size of a quota file server? ›

Apply a quota to a set of subfolders – profile folders

The goal is that each user has an individual limit. From the administration console of the File Server Resource Manager role, go to Quotas 1, right click in the central area and click on Create quota 2.

Which command is used to view quota information for a specific user? ›

The quota command displays disk usage and quotas. By default, or with the -u flag, only user quotas are displayed. The quota command reports the quotas of all file systems listed in the /etc/filesystems file. If the quota command exits with a non-zero status, one or more file systems are over quota.

What is the difference between public IP and private IP in Azure? ›

A virtual network in Azure can have private and public IP addresses. Private IP addresses are only accessible from within the virtual network and public IP addresses can be accessed from the internet as well. You can access private IP addresses from a VPN Gateway or an ExpressRoute connection.

What is the difference between a static IP address and a public IP address? ›

IP Address Terminology

Static means the IP address never changes as long as you stay with the same provider or same server. Dynamic means the IP address can change from time-to-time. Public means the IP address can be reached via the Internet from any computer in the world.

What is the maximum storage capacity in Azure? ›

Each Azure subscription can have up to 200 storage accounts, each with up to 500 TiB (roughly 550 TB) of space. There are no limits to the number of blobs or files that you can put in a storage account.

What is the maximum limit of Azure storage? ›

Azure NetApp Files
ResourceStandard file sharesPremium file shares
Maximum share size5 TB by default, can be increased up to 100TB100 TB
Maximum file size1 TB4 TB
Maximum IOPS1,000 IOPS*100,000 IOPS
Maximum stored access policies**55
5 more rows
Dec 21, 2020

How do I check my Azure storage capacity? ›

To view the utilization and availability of your storage accounts across all of your subscriptions, perform the following steps.
  1. Sign in to the Azure portal.
  2. Select Monitor from the left-hand pane in the Azure portal, and under the Insights section, select Storage Accounts.
Nov 18, 2022

What is the maximum capacity of an unmanaged Azure storage account? ›

Azure Managed and Unmanaged Data Disks have a maximum size of 4095 GB (with the exception of larger disks in preview). Azure Unmanaged Disks also have a maximum capacity of 4095 GB.

How do I increase instance count in Azure App Service? ›

In your browser, open the Azure portal. In your App Service app page, from the left menu, select Scale Up (App Service plan). Choose your tier, and then select Apply. Select the different categories (for example, Production) and also See additional options to show more tiers.

What is the maximum number of storage accounts that can be created in a single Azure subscription? ›

Within a single subscription, you can create accounts with either standard or Azure DNS Zone endpoints, for a maximum of 5250 accounts per region per subscription. With a quota increase, you can crate up to 5500 storage accounts per region per subscription.

How do I increase my Azure GPU quota? ›

Requesting more Azure virtual machine quota
  1. Navigate to “Home” > “Subscriptions” > Select subscription containing Valohai > “Usage + Quotas”
  2. Click “Request Increase”
  3. Change “Quota type” to “Compute-VM subscription limit increase”
  4. Click “Next”
  5. Click “Provide details”
  6. Keep the default deployment model (“Resource Manager”)
Mar 2, 2022

How do I change my Azure disk availability zone? ›

In the Azure portal, select Virtual machines, and select the VM you want to move into Availability Zones. In Operations, select Disaster recovery. In Configure disaster recovery > Target region, select the target region to which you'll replicate. Ensure this region supports Availability Zones.

How do I change my availability set in Azure? ›

Azure VM - Add/Attach The Availability Set To The Existing VM
  1. Get the list of attached OS + Data disk of existing VM.
  2. Get the Network interface details.
  3. Remove the Azure Disk Encryption (ADE) if it's enabled.
  4. Remove the Azure VM (delete it)
  5. Now create the new VM with the same name & with Availability set.
Oct 29, 2020

How do I force more GPU utilization? ›

How to Fix Low GPU Usage?
  1. Fix 1: Reinstall the Graphics Driver. ...
  2. Fix 2: Disable Third-Party Background Apps. ...
  3. Fix 3: Install the Patches on Time and Optimize the Game Settings. ...
  4. Fix 4: Update Chipset Drivers. ...
  5. Fix 5: Change In-game Settings. ...
  6. Fix 6: Avoid CPU Overheating. ...
  7. Fix 7: Decrease the Clock Rate. ...
  8. Fix 8: Reinstall the Game.
Mar 2, 2023

How do you implement user disk quotas? ›

Start by going to Computer (or This PC if you're running Windows 10), right-clicking on a volume, and selecting Properties. Switch to the Quota tab and select Show Quota Settings. Check the box next to Enable quota management and Deny disk space to users exceeding quota limit.

What is quota limit? ›

A disk quota is a limit set by a system administrator that restricts certain aspects of file system usage on modern operating systems. The function of using disk quotas is to allocate limited disk space in a reasonable way.

Should I enable disk quota? ›

In other words, with disk quotas enabled, you can limit the amount of storage space that every user can use, and nobody can trespass this limit. That means your storage space will never be filled up by others' accounts.

How do I increase Azure managed disk size? ›

Resize a managed disk in the Azure portal

In the left menu under Settings, select Disks. Under Disk name, select the disk you want to expand. In the left menu under Settings, select Size + performance. In Size + performance, select the disk size you want.

How do I check Azure availability Zone? ›

In this article
  1. Click Create a resource > Compute > Virtual machine.
  2. Enter the virtual machine information. ...
  3. Choose a region such as East US 2 that supports availability zones.
  4. Under Availability options, select Availability zone dropdown.
  5. Under Availability zone, select a zone from the drop-down list.
Mar 20, 2022

What is the difference between availability zone and availability set? ›

Availability zones are similar in concept to availability sets. However, there is a distinct difference. While availability sets are used to protect applications from hardware failures within an Azure data center, availability zones, protect applications from complete Azure data center failures.

What is the difference between availability set and zone in Azure? ›

An availability set secures your Azure services from outages inside individual data centers. An availability zone defends against breakdowns of the whole data center. Service Level Agreement stands at 99.995%. Service Level Agreement stands at 99.999%.

What is the difference between availability set and scale set? ›

Scale sets can increase the number of virtual machines based on demand. Availability set has no additional charge. You only pay for the computing resources. Scale sets have no additional charge.

What is availability scale set in Azure? ›

An availability set is a logical grouping of VMs that allows Azure to understand how your application is built to provide for redundancy and availability. We recommended that two or more VMs are created within an availability set to provide for a highly available application and to meet the 99.95% Azure SLA.


1. Automating Quota management with Azure Quota rest API | Managing Transitional Events | DevOps |
(CloudFirst Technology)
2. How to fix "Quota Error: User Rate Limit Exceeded" in Google Analytics API
(Analytify - Google Analytics for WordPress)
3. Setting up cost controls with quota
(Google Cloud Tech)
4. Mastering Document Understanding as a Service : REST API & Cloud Integration
(nisarg kadam)
5. Automating Quota management with Azure Quota rest API Managing Transitional Events DevOps
(CloudFirst Technology)
6. Developing a REST API with Go and Cloud Run || [GSP761] || Solution
(Tech Vine)
Top Articles
Latest Posts
Article information

Author: Van Hayes

Last Updated: 06/01/2023

Views: 5237

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Van Hayes

Birthday: 1994-06-07

Address: 2004 Kling Rapid, New Destiny, MT 64658-2367

Phone: +512425013758

Job: National Farming Director

Hobby: Reading, Polo, Genealogy, amateur radio, Scouting, Stand-up comedy, Cryptography

Introduction: My name is Van Hayes, I am a thankful, friendly, smiling, calm, powerful, fine, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.