
From Binary to Insight
Installing Azurehound takes minutes. Using it well takes a little more understanding. The tool is simple on the surface, a single list command does most of the work, but the choices you make around authentication, scope and output handling determine whether you end up with a complete, trustworthy graph or a partial picture that hides the paths that matter.
This walkthrough covers the full workflow: preparing for collection, choosing credentials, running full and targeted collections, handling the output securely and interpreting the first results in BloodHound.
Step 1: Prepare and Get Authorisation
Before typing a command, settle three things:
- Authorisation. Confirm in writing that you may collect from the tenant. For internal teams this might be a change ticket; for consultants, a signed scope.
- Identity. Decide which account or service principal will run the collection. Its permissions determine what Azurehound can see.
- Storage. Prepare an encrypted folder for the output. The JSON file is effectively a map of your privileges.
Step 2: Understand the Command Structure
Azurehound's commands follow a consistent pattern:
azurehound [command] [sub-command] [flags]
The commands you will use most are:
| Command | Purpose |
|---|---|
list | Collect Azure objects and write them to stdout or a file |
configure | Set up collection for BloodHound Enterprise |
start | Run the BloodHound Enterprise collection service |
completion | Generate shell auto-completion scripts |
help | Show help for any command |
For BloodHound Community Edition, list is the only command you need.
Step 3: Choose an Authentication Method
Azurehound supports several ways to sign in. The right one depends on your situation.
Username and password. The simplest option, but it fails when the account requires MFA, which most should.
azurehound list -u "auditor@contoso.com" -p "<password>" --tenant "contoso.onmicrosoft.com" -o output.json
Refresh token. Obtained from an interactive sign-in, a refresh token works with MFA-protected accounts and is a common choice for assessments.
azurehound list -r "<refresh-token>" --tenant "contoso.onmicrosoft.com" -o output.json
JWT access token. Useful when you already hold a valid token, for example from the Azure CLI. Bear in mind that an access token is scoped to one resource and expires quickly.
azurehound list -j "<access-token>" --tenant "contoso.onmicrosoft.com" -o output.json
Service principal with secret or certificate. The best option for scheduled or repeatable collections, because permissions are explicit and no human sign-in is needed.
azurehound list -a "<app-id>" -s "<client-secret>" --tenant "contoso.onmicrosoft.com" -o output.json
Certificate-based sign-in uses --cert and --key (plus --keypass for an encrypted key) and is generally preferred over secrets. Our dedicated authentication guide explores each method in depth.
Step 4: Run a Full Collection
A full collection gathers both Entra ID and Azure Resource Manager data:
azurehound list --tenant "contoso.onmicrosoft.com" -r "<refresh-token>" -o contoso-full.json
While it runs, Azurehound logs progress as it finishes each object type: users, groups, applications, service principals, devices, roles, role assignments, subscriptions, resource groups, virtual machines, key vaults and more. A small tenant finishes in minutes; a large enterprise tenant can take much longer because Microsoft Graph throttles heavy clients.
Naming files with the tenant and date, such as contoso-2026-12-01.json, makes later comparisons far easier.
Step 5: Run Targeted Collections
Sometimes you only need part of the picture. Azurehound supports narrower collections:
# Entra ID directory objects only
azurehound list az-ad --tenant "contoso.onmicrosoft.com" -r "<token>" -o ad.json
# Azure Resource Manager objects only
azurehound list az-rm --tenant "contoso.onmicrosoft.com" -r "<token>" -o rm.json
# A single object type
azurehound list key-vaults --tenant "contoso.onmicrosoft.com" -r "<token>" -o kv.json
Targeted runs are useful when a full collection keeps hitting throttling, when you want to refresh only resources after an infrastructure change, or when an identity has directory rights but no RBAC access. Run azurehound list --help to see every object type your version supports.
Step 6: Useful Global Flags
| Flag | Purpose |
|---|---|
--tenant / -t | Target tenant name or ID |
--output / -o | Output file path |
--verbosity / -v | Log detail from -1 to 2 |
--log-file | Write logs to a file with rotation |
--json | Output logs as JSON for log pipelines |
--proxy | Route traffic through a proxy |
--config / -c | Load settings from a configuration file |
For sovereign clouds such as Azure Government, check the help output for the region option supported by your version.
Step 7: Handle the Output Securely
The output file contains user names, group memberships, application permissions, role assignments and resource details. Treat it as confidential:
- Store it encrypted and restrict access.
- Transfer it only over secure channels.
- Delete it, or archive it under policy, once analysis ends.
- Never upload it to public services or share it in issue trackers.
Step 8: Import Into BloodHound
Open BloodHound Community Edition in your browser, go to the file upload area (labelled File Ingest or Upload Files depending on your version) and select the JSON file. Ingestion runs in the background. When it completes, Azure nodes such as AZUser, AZGroup, AZServicePrincipal, AZApp, AZSubscription and AZKeyVault become searchable.
Step 9: Ask Your First Questions
Start with high-value questions:
- Who can reach Global Administrator? Search for the Global Administrator role and examine inbound paths.
- Which service principals hold powerful Graph permissions? Look for edges such as AZMGGrantAppRoles that allow an application to grant itself further rights.
- Who can control subscriptions? Examine Owner and User Access Administrator assignments on subscription nodes.
- Which users own applications? Application ownership often creates indirect paths to privileged service principals.
Each answer points to concrete remediation: removing stale assignments, tightening ownership or converting standing access into Privileged Identity Management eligibility.
Step 10: Repeat and Compare
Azurehound delivers the most value when used regularly. Monthly or quarterly collections reveal whether attack paths are shrinking or growing, and whether new applications or role assignments introduced fresh risk. Keep the same collector version, identity and scope across comparisons for meaningful trends.
Planning a Collection Schedule
A single Azurehound collection is a snapshot. Its real value emerges when collections are repeated on a sensible schedule. Before committing to one, consider tenant size, rate of change and the capacity of the team that will review the results.
For most organisations, a monthly full collection strikes a good balance. It catches new applications, role assignments and resources without overwhelming analysts. Supplement it with targeted collections after significant events: a merger, a large migration to Azure, a reorganisation of administrative roles or a security incident.
Very large tenants may prefer to split work. A weekly az-ad collection keeps directory changes visible, while a monthly az-rm collection covers infrastructure. Splitting also reduces the chance that a single long run is interrupted by throttling or token expiry.
Whatever schedule you choose, document it. Record the identity, scope, Azurehound version and output location for each run. Consistency is essential: a jump in attack paths means something only if the collection method stayed the same.
Reviewing results efficiently
Agree in advance which questions each review will answer. A short checklist might include the number of principals with a path to Global Administrator, new service principals with high-risk permissions, new Owner assignments on subscriptions and any new paths through virtual machines. Answering the same questions every cycle turns Azurehound from an occasional deep dive into a dependable security metric, and makes it much easier to show leadership that risk is falling over time.
Key Takeaways
- Secure written authorisation and plan output storage before running any Azurehound command.
- Choose the authentication method that suits the account: refresh tokens for MFA users and service principals for automation.
- Use
azurehound listfor full collections andaz-ad,az-rmor single object types for targeted runs. - Treat the output file as confidential and import it into BloodHound promptly.
- Begin analysis with paths to Global Administrator, privileged service principals and subscription owners.
- Collect on a consistent schedule so changes over time are meaningful.
FAQs
azurehound list --tenant <tenant> -u <user> -p <password> -o output.json runs a full collection, provided the account does not require MFA.-o, output goes to stdout, which you can pipe to another tool. A file is usually more practical.azurehound list --help. The available sub-commands vary slightly between versions.Conclusion
Using Azurehound effectively comes down to a clear sequence: secure authorisation, choose the right identity, run a full or targeted list collection, protect the output and ask focused questions in BloodHound. Master that loop and Azurehound becomes one of the most efficient ways to understand, and steadily reduce, the attack paths in your Azure environment.


