Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.automation.usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the id of the resource.
nameobjectGets or sets the usage counter name.
currentValuenumberGets or sets the current usage value.
limitintegerGets or sets max limit. -1 for unlimited.
throttleStatusstringGets or sets the throttle status.
unitstringGets or sets the usage unit name.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_automation_accountselectresource_group_name, automation_account_name, subscription_idRetrieve the usage for the account id.

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
automation_account_namestringThe name of the automation account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieve the usage for the account id.

SELECT
id,
name,
currentValue,
limit,
throttleStatus,
unit
FROM azure.automation.usages
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;