Skip to content
AZ-11 Draft

Find which subscription a resource is in

One Resource Graph query searches every subscription you can see.

Draft. The fix is known and correct, but we're still writing up the full step-by-step.

Fix

Use Azure Resource Graph (Az.ResourceGraph module, available in Cloud Shell):

Search-AzGraph -Query "resources | where name =~ 'my-resource-name' | project name, type, resourceGroup, subscriptionId, location"

Search by partial name with contains, or by type (for example where type =~ 'microsoft.compute/virtualmachines'). Add -UseTenantScope to search across every subscription in the tenant that you can read.

This guide is being expanded with full steps.

Seeing this in your environment?

We can check for this, and everything around it, as part of an audit.

Ask us about AZ-11

Find out what's really going on in your tenant.

Tell us what you run and what's worrying you. We'll recommend the right audit, and tell you honestly if you don't need one.