The Azure Cost Threshold trigger is activated when the total cost of selected resources exceeds a specified amount. It is a valuable tool for managing Azure costs across resource groups and services. It helps alert you when costs approach your budget limit, comply with cost controls, optimize your resources and most importantly, avoid unexpected costs.
GorillaStack requires the following permission to inspect costs within your subscription:
Microsoft.CostManagement/query/*
The Azure Cost Threshold trigger will usually be used in a rule with the Notify Cost action, which generates formatted notifications for costs based on the specified criteria. However, it is possible to pair it with any action.
The rule will not be triggered at the time of rule creation, even if the cost threshold has been exceeded at that point. Rule triggers are verified after retrieving fresh data from the selected Azure subscriptions, which can take up to an hour.
This trigger works by aggregating costs based on:
Monitor the cost threshold for all Azure services or specify one.
Monitor the cost threshold for all Resource Groups or specify a subset across Azure Subscriptions selected in the Rule context.
All Resource Groups - includes Resource Groups that will be created in the future
Select Resource Group(s) - one or more can be selected across multiple subscriptions
The trigger will be activated when the total costs of the previous selections exceed the amount specified in this field. The value must be a whole number.