New-​Azure​Rm​Virtual​Network​Gateway​Connection

Syntax

New-AzureRmVirtualNetworkGatewayConnection
   [-AuthorizationKey <String>]
   -ConnectionType <String>
   [-EnableBgp <Boolean>]
   [-Force]
   [-IpsecPolicies <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSIpsecPolicy]>]
   [-LocalNetworkGateway2 <PSLocalNetworkGateway>]
   -Location <String>
   -Name <String>
   [-Peer <PSPeering>]
   -ResourceGroupName <String>
   [-RoutingWeight <Int32>]
   [-SharedKey <String>]
   [-Tag <Hashtable>]
   [-UsePolicyBasedTrafficSelectors <Boolean>]
   -VirtualNetworkGateway1 <PSVirtualNetworkGateway>
   [-VirtualNetworkGateway2 <PSVirtualNetworkGateway>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzureRmVirtualNetworkGatewayConnection
   [-AuthorizationKey <String>]
   -ConnectionType <String>
   [-EnableBgp <Boolean>]
   [-Force]
   [-IpsecPolicies <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSIpsecPolicy]>]
   [-LocalNetworkGateway2 <PSLocalNetworkGateway>]
   -Location <String>
   -Name <String>
   [-PeerId <String>]
   -ResourceGroupName <String>
   [-RoutingWeight <Int32>]
   [-SharedKey <String>]
   [-Tag <Hashtable>]
   [-UsePolicyBasedTrafficSelectors <Boolean>]
   -VirtualNetworkGateway1 <PSVirtualNetworkGateway>
   [-VirtualNetworkGateway2 <PSVirtualNetworkGateway>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Examples

1:

Required Parameters

-ConnectionType
Type:String
Parameter Sets:IPsec, Vnet2Vnet, ExpressRoute, VPNClient
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Location
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name
Type:String
Aliases:ResourceName
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VirtualNetworkGateway1
Type:PSVirtualNetworkGateway
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AuthorizationKey
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-EnableBgp
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Force
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IpsecPolicies

A list of IPSec policies.

Type:System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSIpsecPolicy]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-LocalNetworkGateway2
Type:PSLocalNetworkGateway
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Peer
Type:PSPeering
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PeerId
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RoutingWeight
Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SharedKey
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Tag
Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-UsePolicyBasedTrafficSelectors

Use policy-based traffic selectors for a S2S connection

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VirtualNetworkGateway2
Type:PSVirtualNetworkGateway
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False