New-AzNetworkCloudBgpServiceLoadBalancerConfigurationObject
Create an in-memory object for BgpServiceLoadBalancerConfiguration.
Syntax
New-AzNetworkCloudBgpServiceLoadBalancerConfigurationObject
[-BgpAdvertisement <IBgpAdvertisement[]>]
[-BgpPeer <IServiceLoadBalancerBgpPeer[]>]
[-FabricPeeringEnabled <FabricPeeringEnabled>]
[-IPAddressPool <IIPAddressPool[]>]
[<CommonParameters>]
Description
Create an in-memory object for BgpServiceLoadBalancerConfiguration.
Examples
Example 1: Create an in-memory object for BgpServiceLoadBalancerConfiguration.
$ipAddressPools=New-AzNetworkCloudIpAddressPoolObject -Address @("198.51.102.0/24") -Name "pool1" -AutoAssign True -OnlyUseHostIP True
$serviceLoadBalancerBgpPeer=New-AzNetworkCloudServiceLoadBalancerBgpPeerObject -Name name -PeerAddress "203.0.113.254" -PeerAsn "64497" -BfdEnabled False -BgpMultiHop False -HoldTime "P300s" -KeepAliveTime "P300s" -MyAsn 64512 -Password passsword -PeerPort 1234
$bgpAdvertisement=New-AzNetworkCloudBgpAdvertisementObject -IPAddressPool @("pool1","pool2") -AdvertiseToFabric "True" -Community @("communityString") -Peer @("peer1")
$object=New-AzNetworkCloudBgpServiceLoadBalancerConfigurationObject -BgpAdvertisement @($bgpAdvertisement) -BgpPeer $serviceLoadBalancerBgpPeer -FabricPeeringEnabled True -IPAddressPool @($ipAddressPools)
Write-Host ($object | Format-List | Out-String)
Category : azure-resource-management
Endpoint : {{
"domainName": "domainName",
"port": 1234
}}
Create an in-memory object for BgpServiceLoadBalancerConfiguration.
Parameters
-BgpAdvertisement
The association of IP address pools to the communities and peers, allowing for announcement of IPs. To construct, see NOTES section for BGPADVERTISEMENT properties and create a hash table.
Type: | IBgpAdvertisement[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BgpPeer
The list of additional BgpPeer entities that the Kubernetes cluster will peer with. All peering must be explicitly defined. To construct, see NOTES section for BGPPEER properties and create a hash table.
Type: | IServiceLoadBalancerBgpPeer[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FabricPeeringEnabled
The indicator to specify if the load balancer peers with the network fabric.
Type: | FabricPeeringEnabled |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPAddressPool
The list of pools of IP addresses that can be allocated to Load Balancer services. To construct, see NOTES section for IPADDRESSPOOL properties and create a hash table.
Type: | IIPAddressPool[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Azure PowerShell