Az.Network module: setup and commands
Documentation: Microsoft Learn
Inspect Azure virtual networks, subnets, NSGs and public IPs with Az.Network while keeping resource group, region and object IDs explicit.
Getting it
Install-PSResource -Name Az.Network from the PowerShell Gallery.
Examples
Show reference output
Show reference output
What it is for
Use it for NSG rule audits and for tracing which subnet a workload actually sits in. It is also the module for public IP discovery, which tends to be the first step in an internet exposure review.
Typical tasks
- Inventory virtual networks and address space
- Export NSG rules for review
- Find public IP addresses in a subscription
- Map network interfaces back to their VMs
- Read effective security rules on a NIC
- Review peering state between two VNets
Check the installed version
Compare the module path and version with the session used by your scheduled task or automation account. Use it for NSG rule audits and for tracing which subnet a workload actually sits in. It is also the module for public IP discovery, which tends to be the first step in an internet exposure review.