Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Login-AzureRmAccount
- ForEach ($sub in Get-AzureRmSubscription)
- {
- Select-AzureRmSubscription -SubscriptionId $sub.SubscriptionId
- $gwr = Find-AzureRmResource -ResourceType "Microsoft.Network/virtualNetworkGateways"
- if ( $gwr.ResourceGroupName -ne $null )
- {
- $gwo = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $gwr.ResourceGroupName -Name $gwr.Name |
- Select-Object Name, Location, SkuText, ResourceGroupName
- $gwo | Format-Table -AutoSize -Wrap
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement