Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: List all virtual network subnets by using PowerShell

$
0
0

Summary: Use the Azure Resource Manager cmdlets to identify all the available subnets in a particular virtual network.

Hey, Scripting Guy! Question I’m trying to figure out a way to list all the subnet configurations in a virtual network in Azure Resource Manager. Got any tips?

Hey, Scripting Guy! Answer How about the answer? It’s a matter of combining the Get-AzureRMVirtualNetwork cmdlet and Get-AzureRMVirtualNetworkSubnetConfig. Here is an example:

Get-AzureRmVirtualNetwork -Name HSG-VirtualNetwork -ResourceGroupName HSG-AzureRG | Get-AzureRmVirtualNetworkSubnetConfig | Format-Table

The Doctor


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>