Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.storage.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectGets the name of the type of usage.
currentValueintegerGets the current count of the allocated resources in the subscription.
limitintegerGets the maximum count of the resources that can be allocated in the subscription.
unitstringGets the unit of measurement. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountsPerSecond", and "BytesPerSecond". (Count, Bytes, Seconds, Percent, CountsPerSecond, BytesPerSecond)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_locationselectlocation, subscription_idGets the current usage count and the limit for the resources of the location 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 the current usage count and the limit for the resources of the location under the subscription.

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