Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Login-AzureRmAccount
  2. ForEach ($sub in Get-AzureRmSubscription)
  3. {
  4. Select-AzureRmSubscription -SubscriptionId $sub.SubscriptionId
  5. $gwr = Find-AzureRmResource -ResourceType "Microsoft.Network/virtualNetworkGateways"
  6. if ( $gwr.ResourceGroupName -ne $null )
  7. {
  8. $gwo = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $gwr.ResourceGroupName -Name $gwr.Name |
  9. Select-Object Name, Location, SkuText, ResourceGroupName
  10. $gwo | Format-Table -AutoSize -Wrap
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement