Auto create groups
  • 05 Aug 2026
  • 4 Minutes to read
  • Dark
    Light
  • Download PDF

Auto create groups

  • Dark
    Light
  • Download PDF

Article summary

Overview

Auto create groups automates the creation of cost management groups in Cost Analyzer using rules based on subscription, resource group, resource type, region, and tags. Rules are evaluated daily, so new groups are created automatically as your Azure environment changes.

Business value

Auto create groups removes the manual effort of creating and maintaining cost management groups as subscriptions, resources, and tags evolve. Rules keep your group structure current without repeated manual reconfiguration.

Prerequisites

An existing cost management group in Cost Analyzer is required as the starting point for configuring automation rules.

Required permissions

RolePermission levelAccess
Account owner, Owner, ContributorFull access to Auto create groups
Custom roleNo access to Auto create groups

How it works

  • Automation rules are defined at the cost management group level using a Filter Type — Subscription, Resource type, Resource group, Location, or Tag.
  • Rules undergo daily evaluation, and any matching items result in the automatic creation of groups.
  • Child rules let you create nested child groups based on the same automation logic.
  • Saved rules execute immediately, then recur daily at the time of the last save.

Steps

Use the following steps to configure and run group automation rules. Navigate to the Context menu ( ⋮ ) of the relevant cost management group to get started.

Configure automation rules

Configuring an automation rule sets up the filter logic Cost Analyzer uses to automatically create groups on a daily schedule.

  1. Click the Context menu ( ⋮ ) next to the cost management group in the tree view.
  2. Select Configure to open Auto create group.

Auto create groups.png

  1. Add a new automation rule by selecting Group rule.
  2. Choose a Filter Type — Subscription, Resource type, Resource group, Location, or Tag — and specify the items to include in the Includes field.
  3. Add any items to exclude from the automated group in the Excludes field.
  4. Click Child rule to create nested child groups based on the defined rule.
  5. Use Delete to remove a rule, or Discard to revert unsaved changes.
  6. Click Validate to preview the resulting groups in a tree view based on the configured rules.
  7. Click View scope to see the filter items applied to each group.
  8. Click Save to persist and activate the rule.

The rule runs immediately after saving and then recurs daily at the time of the last save.

Autocreategroupconfigure2.gif

Run group automation instantly

Running a rule instantly creates groups immediately instead of waiting for the next daily evaluation.

  1. Open the Context menu ( ⋮ ) of the relevant cost management group.
  2. Click Run now on the Auto create groups card to trigger group creation immediately.

The card also shows the run details, a toggle to enable or disable the automation, and an Edit option to update the configured rules.

Runnowautocreategroup.png

Configuration

OptionTypeDefaultRequiredDescription
Filter typeSelection (Subscription / Resource type / Resource group / Location / Tag)YesThe attribute used to match resources for automatic group creation.
IncludesList of filter itemsYesItems matching the selected filter type that should be included in the automated group.
ExcludesList of filter itemsNoItems to exclude from the automated group even if they match the Includes filter.
Child ruleRule definitionNoDefines nested child groups under the parent automation rule.

Example scenario

A cloud team creates an automation rule on their "Production" cost management group using Resource group as the filter type, including all resource groups tagged env:prod. A child rule further splits the group by Location. The rule runs daily, automatically creating and updating subgroups as new tagged resource groups are deployed.

Troubleshooting

  1. Groups are not being created after saving the rule
    Cause: The filter items in the Includes field may not match any resources in the connected Azure subscriptions, or the subscription hasn't been scanned since the rule was saved.
    Fix: Click Validate to preview which groups the rule would create. If the tree view is empty, review the filter type and included items to ensure they match existing resources.

  2. Automation stopped creating new groups after it was working
    Cause: The resources that previously matched the filter may have been deleted, renamed, or re-tagged in Azure.
    Fix: Click Validate to check the current expected output. Update the Includes or Excludes fields to reflect the current state of your Azure environment, then save the rule again to reset the daily schedule.

  3. Child groups are not appearing under the parent group
    Cause: The child rule may not match any resources, or it may conflict with an Excludes entry in the parent rule.
    Fix: Open the Configure panel and click Validate to check whether the child rule produces any results. Adjust the child rule filter and re-save.

  4. The Run now option is not visible
    Cause: No automation rule has been configured for this cost management group yet.
    Fix: Configure at least one automation rule and save it. The Auto create groups card with the Run now option appears in the group's context menu once a rule exists.

  5. An automation rule was deleted but the groups it created still exist
    Cause: Deleting an automation rule stops future automatic group creation. It does not remove groups that were already created.
    Fix: Manually delete any groups that are no longer needed from the tree view.

FAQs

  1. Who can configure Auto create groups?
    Only Account owner, Owner, and Contributor roles have access. Custom roles cannot configure or use this feature, regardless of assigned permissions.

  2. How often do automation rules run?
    Rules run immediately after saving, then recur daily at the time of the last save.

  3. Can I preview which groups a rule will create before saving it?
    Yes. Click Validate to preview the resulting groups in a tree view based on the configured rule, and View scope to see the filter items applied to each group.


Was this article helpful?