New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig
Creates a tunnel interface in a backend address pool of a load balancer.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig
[-Type <String>]
[-Protocol <String>]
[-Identifier <UInt32>]
[-Port <UInt32>]
Description
Creates a tunnel interface in a backend address pool of a load balancer. This is used for Gateway Load Balancer
Examples
Example 1: Add a tunnel interface to a backend address pool configuration to a load balancer
## Get loadbalancer
PS C:\> $lb = Get-AzLoadBalancer -ResourceGroupName $resourceGroup -Name $loadBalancerName
## Create tunnel interface to backend address pool
PS C:\> $tunnelInterface1 = New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig -Protocol Vxlan -Type Internal -Port 2000 -Identifier 800 -BackendAddressPool $pool
PS C:\> $tunnelInterface2 = New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig -Protocol Vxlan -Type External -Port 2001 -Identifier 801 -BackendAddressPool $pool
## Set backend address pool
PS C:\> $pool = Set-AzLoadBalancerBackendAddressPool -Name "BackendAddressPool02" -TunnelInterface $tunnelInterface1, $tunnelInterface2
If the properties are not provided then they will be replaced with default values.
Parameters
-Identifier
Specifies the identifier of tunnel interface.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-Port
Specifies the port of tunnel interface.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-Protocol
Specifies the protocol of tunnel interface.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-Type
Specifies the type of tunnel interface.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |