Skip to main content

location_usages

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

Overview

Namelocation_usages
TypeResource
Idazure.container_instances.location_usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringId of the usage result
nameobjectThe name object of the resource
currentValueinteger (int32)The current usage of the resource
limitinteger (int32)The maximum permitted usage of the resource.
unitstringUnit of the usage result

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, locationGet the usage for a 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 identifier for the physical azure location.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get the usage for a subscription

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