Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.search.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource ID of the quota usage SKU endpoint for Microsoft.Search provider.
nameobjectThe SKU name information of the current search service.
currentValueintegerThe currently used up value for the particular search SKU.
limitintegerThe quota limit for the particular search SKU.
unitstringThe unit of measurement for the search SKU.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_subscriptionselectlocation, subscription_idGet a list of all Azure AI Search quota usages across the subscription.
usage_by_subscription_skuexeclocation, sku_name, subscription_idGets the quota usage for a search SKU in the given 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 name of the Azure region. Required.
sku_namestringThe unique SKU name that identifies a billable tier. Required.
subscription_idstring

SELECT examples

Get a list of all Azure AI Search quota usages across the subscription.

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

Lifecycle Methods

Gets the quota usage for a search SKU in the given subscription.

EXEC azure.search.usages.usage_by_subscription_sku 
@location='{{ location }}' --required,
@sku_name='{{ sku_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;