Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.compute.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectThe name of the type of usage.
currentValueinteger (int32)The current usage of the resource.
limitinteger (int64)The maximum permitted usage of the resource.
unitstringAn enum describing the unit of usage measurement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocation, subscriptionIdGets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.

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
locationstringThe location for which resource usage is queried.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.

SELECT
name,
currentValue,
limit,
unit
FROM azure.compute.usages
WHERE location = '{{ location }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;