Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.quota.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
isQuotaApplicablebooleanStates if quota can be requested for this resource.
propertiesobjectAdditional properties for the specific resource provider.
quotaPeriodstringThe time period for the summary of the quota usage values. For example: *P1D (per one day) *PT1M (per one minute) *PT1S (per one second). This parameter is optional because it is not relevant for all resources such as compute.
resourceTypestringThe name of the resource type. Optional field.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
unitstringThe units for the quota usage, such as Count and Bytes. When requesting quota, use the unit value returned in the GET response in the request body of your PUT operation.
usagesobjectThe quota limit properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_name, scopeGet the current usage of a resource.
listselectscopeGet a list of current usage for all resources for the scope specified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_namestringResource name for a given resource provider. For example: * SKU name for Microsoft.Compute * SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get the current usage of a resource.

SELECT
id,
name,
isQuotaApplicable,
properties,
quotaPeriod,
resourceType,
systemData,
type,
unit,
usages
FROM azure.quota.usages
WHERE resource_name = '{{ resource_name }}' -- required
AND scope = '{{ scope }}' -- required
;