Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.automation.usages

Fields

NameDatatypeDescription
idstringGets or sets the id of the resource.
nameobjectDefinition of 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

NameAccessible byRequired ParamsDescription
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve the usage for the account id.

SELECT examples

Retrieve the usage for the account id.

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