Get-AzNetworkVirtualApplianceConnection

Get or List Network Virtual Appliances connections connected to a Network Virtual Appliance.

Syntax

Get-AzNetworkVirtualApplianceConnection
   -ResourceGroupName <String>
   -VirtualApplianceName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkVirtualApplianceConnection
   -VirtualAppliance <PSNetworkVirtualAppliance>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkVirtualApplianceConnection
   -VirtualApplianceResourceId <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzNetworkVirtualApplianceConnection commands gets or lists connections connected to a Network Virtual Appliance.

Examples

Example 1

Get-AzNetworkVirtualApplianceConnection -ResourceGroupName testrg -VirtualApplianceName nva

Name                   : defaultConnection
ProvisioningState      : Succeeded
PropagateStaticRoutes  : False
EnableInternetSecurity : False
BgpPeerAddress         : []
Asn                    : 65222
TunnelIdentifier       : 0
RoutingConfiguration   : {
                           "AssociatedRouteTable": {
                             "Id":"/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
                           },
                           "PropagatedRouteTables": {
                             "Labels": [],
                             "Ids": [
                               {
                                 "Id": "/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
                               }
                             ]
                           },
                           "InboundRouteMap": {},
                           "OutboundRouteMap": {}
                         }

The above will gets the connection from "testRG" resource group using Resource group and Parent NVA name

Example 2

$nva = Get-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva
Get-AzNetworkVirtualApplianceConnection -VirtualAppliance $nva

Name                   : defaultConnection
ProvisioningState      : Succeeded
PropagateStaticRoutes  : False
EnableInternetSecurity : False
BgpPeerAddress         : []
Asn                    : 65222
TunnelIdentifier       : 0
RoutingConfiguration   : {
                           "AssociatedRouteTable": {
                             "Id":"/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
                           },
                           "PropagatedRouteTables": {
                             "Labels": [],
                             "Ids": [
                               {
                                 "Id": "/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
                               }
                             ]
                           },
                           "InboundRouteMap": {},
                           "OutboundRouteMap": {}
                         }

This cmdlet gets the NVA connection using Network Virtual Appliance object.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The resource name.

Type:String
Aliases:ResourceName, NetworkVirtualApplianceConnectionName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:True

-ResourceGroupName

The resource group name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VirtualAppliance

The parent Network Virtual Appliance for this connection.

Type:PSNetworkVirtualAppliance
Aliases:ParentNva, NetworkVirtualAppliance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VirtualApplianceName

The parent virtual appliance resource name.

Type:String
Aliases:ParentNvaName, NetworkVirtualApplianceName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VirtualApplianceResourceId

The resource id of the parent Network Virtual Appliance for this connection.

Type:String
Aliases:ParentNvaId, NetworkVirtualApplianceId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSNetworkVirtualAppliance

String

Outputs

PSNetworkVirtualApplianceConnection