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.
currentValuenumber (double)Gets or sets the current usage value.
limitinteger (int64)Gets 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_accountselectresourceGroupName, automationAccountName, subscriptionIdRetrieve 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
automationAccountNamestringThe name of the automation account.
resourceGroupNamestringName of an Azure Resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Retrieve the usage for the account id.

SELECT
id,
name,
currentValue,
limit,
throttleStatus,
unit
FROM azure.automation.usages
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND automationAccountName = '{{ automationAccountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;