title: GetAzVirtualNetworkGatewayConnection Status for multiple Vnet gateways
body: <p>I have a requirement to gather the information of connection status for multiple virtual network gateways between multiple resource groups</p>
  <p>Let's say</p>
  <p>I have one vnetgateway in rg1 and vnetgateway in rg2.</p>
  <p>I established a connection to vnet1tovnet2 and vice versa between both virtual network gateways. The connection is done
  Now I have a command called Get-Azvirtualnetworkgatewayconnection -name ( <strong>here I have to give the connection name</strong>) - resource group name $rg</p>
  <p>Now my question here is that. I want to fetch those connection names itself and pass it to Get-Azvirtualnetworkgatewayconnection -name as a parameter or variable.</p>
  <p>I don't find a command for that. As to know the name of the connection i need to go to portal,fetch those details and then embed in powershell code. This can be done for one or 2
  But i have multiple vnetgateway and multiple connections</p>
  <p>Hence getting those connection names and then knowing the connection status (either connected or disconnected) will help me.</p>
  <p>Anyone has any idea on this?
  Please help me. Thanks</p>