Run a read-only AVD audit collector
Collect an Azure Virtual Desktop environment's configuration into CSVs from Cloud Shell, without changing anything.
What it does
A read-only PowerShell collector, run from Azure Cloud Shell, exports an AVD environment’s state into CSVs: host pools, session hosts, VM sizes and utilization, public IPs, NSG rules, storage and FSLogix shares, and reservations. Those CSVs become the evidence for an AVD audit write-up.
Permissions: Global Admin isn’t enough
Global Administrator is an Entra role. It doesn’t grant access to Azure resources. The account running the collector needs at least Reader on the subscription (or subscriptions) that hold the AVD resources. A Global Admin can elevate to manage access, but grant Reader explicitly and remove it when the audit is done.
Running it
- Open Cloud Shell (PowerShell) in the client’s tenant.
- Confirm the context:
Get-AzContextshows the expected tenant and subscription. - Upload and run the collector. It writes a folder of CSVs.
- Download the folder.
Reading the findings
| File | What to look for |
|---|---|
public_ips.csv | Session hosts or servers with public IPs (see AVD-07) |
nsg_open_inbound.csv | Any-any or internet-open inbound rules (see AVD-07) |
| VM utilization | Low average CPU or always-on hosts (see AVD-08) |
| Storage | Premium Files share size, quota and snapshots (see AZ-03) |
We run this collector as part of our AVD audit. See also the engineer checklist in AVD-10.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.