Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.storage.usages

Fields

NameDatatypeDescription
nameobjectThe usage names that can be used; currently limited to StorageAccount.
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.

Methods

NameAccessible byRequired ParamsDescription
list_by_locationSELECTlocation, subscriptionIdGets the current usage count and the limit for the resources of the location under the subscription.

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 }}'
AND subscriptionId = '{{ subscriptionId }}';