Skip Management Groups & Subscriptions

In this guide, you will learn how to exclude specific management groups or subscriptions when connecting an Azure Tenant to Guardrails. By default, the Create Connection wizard imports all subscriptions under your tenant. You can use the Discovery Level dropdown to exclude subscriptions or management groups that you don't want Guardrails to manage.

This is useful when you want to:

Prerequisites

Understanding Discovery Levels

Each management group and subscription in your Azure hierarchy has a Discovery Level that controls how Guardrails interacts with it:

Discovery LevelDuring Initial ImportAfter Import (Changing an Existing Resource)
NoneThe resource is not imported. Guardrails ignores it completely.The resource and all of its discovered child resources are deleted from Guardrails. The resources remain in Azure but Guardrails no longer tracks them.
Subscription OnlyThe subscription appears in Guardrails but individual resources are not discovered. Only subscription-level governance is evaluated.Guardrails keeps the subscription but stops materializing most policies and controls. Already-discovered resources remain until their next evaluation cycle.
All ResourcesFull resource-level governance: Guardrails discovers individual resources and materializes all applicable policies and controls.Guardrails begins discovering resources in the subscription.

[!CAUTION] Changing the discovery level to None on an already-imported subscription deletes the subscription and all its discovered resources from Guardrails. This includes all CMDB records, policy evaluations, and control states. The resources are not deleted from Azure, but all Guardrails governance data for those resources is permanently removed.

If you want to reduce governance scope without deleting data, change to Subscription Only instead of None.

Step 1: Review Your Azure Hierarchy

Before importing, review your Azure Tenant hierarchy in the Azure Portal. Navigate to Management Groups to see your management group structure and subscriptions.

Azure Portal showing management group hierarchy

Note the IDs of any management groups or subscriptions you want to exclude.

Step 2: Start the Create Connection Wizard

Navigate to Accounts, click Actions > Create Connection, select Azure, then choose Azure Tenant. Enter your App Registration credentials and click Continue.

After discovery completes, click Continue to reach Step 3, Manage Subscription Discovery.

Step 3: Skip Subscriptions or Management Groups

The wizard shows your discovered tenant hierarchy with a Discovery Level dropdown for each management group and subscription.

Wizard Step 3 showing the subscription tree with Discovery Level dropdowns defaulting to Subscription Only

To skip a subscription, click its Discovery Level dropdown and select None.

Discovery Level dropdown showing None, Subscription Only, and All Resources options

Skipped items appear grayed out with a Reset button to restore the inherited discovery level.

Subscription set to None with grayed-out name and Reset button

How Management Group Exclusions Cascade

Setting a management group to None sets the default discovery level for all resources under it. However, Guardrails evaluates each subscription individually using a priority-based hierarchy:

  1. A direct setting on a specific subscription always takes priority
  2. If no direct setting exists, the subscription inherits from its parent management group
  3. If the parent is also unset, Guardrails walks up the hierarchy to the tenant level
  4. If nothing is set, the default is All Resources

This means you can set a management group to None but override specific child subscriptions to All Resources if you want to manage only a few subscriptions within an otherwise excluded group.

Step 4: Choose Destination Folder and Connect

Select a Destination Folder and click Continue. Review the summary. It shows the number of included subscriptions, management groups, and any custom exclusions.

Click Create Connection to start the import. Guardrails imports only the non-excluded subscriptions and management groups.

Step 5: Verify the Import

After import completes:

  1. Navigate to Accounts > Organizations and click on your tenant. Verify that only the expected subscriptions appear.

  2. Check that the Azure > Tenant > CMDB > Exclude policy contains the exclusion list you specified during import. Navigate to the tenant's Policies tab and search for "exclude."

  3. Verify that CMDB and Discovery controls for the tenant are in OK state on the tenant's Controls tab.

Changing Discovery Levels After Import

You can change discovery levels after the initial import through the tenant's Settings tab under Accounts > Organizations. See Connect a Member Subscription for details on upgrading subscriptions to All Resources mode.

[!WARNING] Before changing any subscription to None: Understand that this deletes the subscription and all its child resources from Guardrails. If you have calculated policies, policy packs, or controls configured at the subscription level, those configurations will be orphaned or deleted along with the resource.

Before changing from All Resources to Subscription Only: Already-discovered resources will eventually be cleaned up as controls re-evaluate. Back up any governance data you need before making this change.

Next Steps

Troubleshooting

IssueSolution
Excluded subscription still appears after importDiscovery level changes take effect on the next control evaluation cycle. Check the subscription's Controls tab. The CMDB control should process the exclusion. If the subscription persists, verify the Discovery Level policy is correctly set.
Controls in ERROR stateControls may enter error state if the App Registration lacks required permissions. Check required permissions.
Import fails due to permissionsThe App Registration needs Directory.Read.All Microsoft Graph permission with admin consent.
Want to re-include a previously excluded subscriptionChange the subscription's Discovery Level from None to Subscription Only or All Resources. Guardrails will re-discover the subscription on the next evaluation cycle. Previously discovered resources will need to be re-discovered from scratch.
Further assistanceOpen a support ticket with relevant details.