Skip to main content

location

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

Overview

Namelocation
TypeResource
Idazure.container_instance.location

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringId of the usage result.
nameobjectThe name object of the resource.
currentValueintegerThe current usage of the resource.
limitintegerThe maximum permitted usage of the resource.
unitstringUnit of the usage result.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_usageselectlocation, subscription_idGet the usage for a subscription.
list_cached_imagesexeclocation, subscription_idGet the list of cached images. Get the list of cached images on specific OS type for a subscription in a region.
list_capabilitiesexeclocation, subscription_idGet the list of capabilities of the location. Get the list of CPU/memory/GPU capabilities of a region.

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

Get the usage for a subscription.

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

Lifecycle Methods

Get the list of cached images. Get the list of cached images on specific OS type for a subscription in a region.

EXEC azure.container_instance.location.list_cached_images 
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
;