Skip to main content

quotas

Creates, updates, deletes, gets or lists a quotas resource.

Overview

Namequotas
TypeResource
Idazure.reservations.quotas

Fields

NameDatatypeDescription
idtextThe quota request ID.
nametextThe name of the quota request.
current_valuetextfield from the properties object
limittextfield from the properties object
locationtextfield from the properties object
propertiestextQuota properties for the resource.
providerIdtextfield from the properties object
quota_periodtextfield from the properties object
resourceNametextfield from the properties object
resource_typetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of resource. "Microsoft.Capacity/ServiceLimits"
unittextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, providerId, resourceName, subscriptionIdGet the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
listSELECTlocation, providerId, subscriptionIdGets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
create_or_updateINSERTlocation, providerId, resourceName, subscriptionIdCreate or update the quota (service limits) of a resource to the requested value.

Steps:

  1. Make the Get request to get the quota information for specific resource.
  2. To increase the quota, update the limit field in the response from Get request to new value.
  3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. | | update | UPDATE | location, providerId, resourceName, subscriptionId | Update the quota (service limits) of this resource to the requested value. • To get the quota information for specific resource, send a GET request. • To increase the quota, update the limit field from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. |

SELECT examples

Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.

SELECT
id,
name,
current_value,
limit,
location,
properties,
providerId,
quota_period,
resourceName,
resource_type,
subscriptionId,
type,
unit
FROM azure.reservations.vw_quotas
WHERE location = '{{ location }}'
AND providerId = '{{ providerId }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new quotas resource.

/*+ create */
INSERT INTO azure.reservations.quotas (
location,
providerId,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ location }}',
'{{ providerId }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a quotas resource.

/*+ update */
UPDATE azure.reservations.quotas
SET
properties = '{{ properties }}'
WHERE
location = '{{ location }}'
AND providerId = '{{ providerId }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';