Skip to main content

usage

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

Overview

Nameusage
TypeResource
Idazure.compute.usage

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectThe name of the type of usage. Required.
currentValueintegerThe current usage of the resource. Required.
limitintegerThe maximum permitted usage of the resource. Required.
unitstringAn enum describing the unit of usage measurement. Required. Default value is "Count".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocation, subscription_idGets, 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 name. Required.
subscription_idstring

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.usage
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;