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:

OK. The usage information will be returned in the response.

NameDatatypeDescription
idstringThe resource ID.
namestringThe resource name.
propertiesobjectUsage properties for the specified resource.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, 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
resourceNamestringResource name for a given resource provider. For example:
- SKU name for Microsoft.Compute
- SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices
For Microsoft.Network PublicIPAddresses.
scopestringThe target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.

SELECT examples

Get the current usage of a resource.

SELECT
id,
name,
properties,
type
FROM azure.quota.usages
WHERE resourceName = '{{ resourceName }}' -- required
AND scope = '{{ scope }}' -- required
;