Get-NetworkControllerVirtualGatewayBgpPeer
Gets a BGP peer.
Syntax
Default (Default)
Get-NetworkControllerVirtualGatewayBgpPeer
[-VirtualGatewayId] <String[]>
[-BgpRouterName] <String[]>
[[-ResourceId] <String[]>]
-ConnectionUri <Uri>
[-CertificateThumbprint <String>]
[-Credential <PSCredential>]
[-PassInnerException]
[<CommonParameters>]
Description
The Get-NetworkControllerVirtualGatewayBgpPeer cmdlet gets the configuration of the Border Gateway Protocol (BGP) peer configuration for the peer(s) specified by the ResourceId parameter. If you do not specify the ResourceId, this cmdlet gets the configuration for all BGP peers of the tenant.
Examples
Example 1: Display all BGP peer configurations for the tenant virtual gateway
PS C:\> Get-NetworkControllerVirtualGatewayBgpPeer -ConnectionUri https://networkcontroller -VirtualGatewayId "Contoso" -BgpRouterName "Contoso_Vnet_Router1"
ResourceMetadata :
ResourceRef : /VirtualGateways/Contoso/BgpRouters/Contoso_Vnet_Router1/BgpPeers/Contoso_SiteB_Gre
InstanceId : 75320697-f1f9-486a-867c-cdc89ca3d958
Etag : W/"b2e94f9d-c589-4c11-84dc-fc2241135352"
ResourceId : Contoso_SiteB_Gre
Properties : Microsoft.Windows.NetworkController.VGwBgpPeerProperties
ResourceMetadata :
ResourceRef : /VirtualGateways/Contoso/BgpRouters/Contoso_Vnet_Router1/BgpPeers/Contoso_SiteC_L3
InstanceId : 0e36be61-11b5-4764-b64e-5e5181689c69
Etag : W/"b2e94f9d-c589-4c11-84dc-fc2241135352"
ResourceId : Contoso_SiteC_L3
Properties : Microsoft.Windows.NetworkController.VGwBgpPeerProperties
This command retrieves all the BGP peers for virtual gateway Contoso configured with the Network Controller where the BGP router is Contoso_Vnet_Router1.
Example 2: Display a specified BGP peer configuration for the tenant virtual gateway
PS C:\> Get-NetworkControllerVirtualGatewayBgpPeer -ConnectionUri "https://networkcontroller" -VirtualGatewayId "Contoso" -BgpRouterName "Contoso_Vnet_Router1" -ResourceId "Contoso_SiteB_Gre"
ResourceMetadata :
ResourceRef : /VirtualGateways/Contoso/BgpRouters/Contoso_Vnet_Router1/BgpPeers/Contoso_SiteB_Gre
InstanceId : 75320697-f1f9-486a-867c-cdc89ca3d958
Etag : W/"b2e94f9d-c589-4c11-84dc-fc2241135352"
ResourceId : Contoso_SiteB_Gre
Properties : Microsoft.Windows.NetworkController.VGwBgpPeerProperties
This command retrieves the BGP peer configuration for tenant Contoso where the router is Contoso_Vnet_Router1 and the peer name is Contoso_SiteB_Gre.
Parameters
-BgpRouterName
Specifies an array of names of BGP routers.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-CertificateThumbprint
Specifies the digital public key X.509 certificate of a user account that has permission to perform this action. This is the certificate thumbprint of the certificate. This thumbprint must also be provided in the ClientCertificateThumbprint parameter in the Install-NetworkController or Set-NetworkController cmdlet so that Network Controller can authorize this user.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ConnectionUri
Specifies the Uniform Resource Identifier (URI) of the Network Controller, used by all Representational State Transfer (REST) clients to connect to Network Controller.
Parameter properties
Type: | Uri |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Credential
Specifies a user credential that has permission to perform this action. The default value is the current user. This user must be present in the security group provided in the ClientSecurityGroup parameter in the Install-NetworkController cmdlet.
Parameter properties
Type: | PSCredential |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PassInnerException
This thumbprint must also be provided in the ClientCertificateThumbprint parameter in the Install-NetworkController or Set-NetworkController cmdlet so that Network Controller can authorize this user.
The thumbprint must be provided only if the network controller client authentication is X509 certificates. Get-NetworkController retrieves that client authentication and authorization information.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceId
Specifies an array of resource IDs of BGP peers.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VirtualGatewayId
Specifies an array of virtual gateway IDs.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
Object
This cmdlet returns object(s) that contain the following fields:
- Resource reference URI.
- Created time of the resource.
- Instance ID of the resource.
- Resource metadata.
- Resource ID.
- Properties of the resource (a virtual/tenant gateway's BGP peer):
- Provisioning state.
- Peer BGP router IP address.
- Peer BGP router autonomous system (AS) number.
- Peer BGP router extended AS number.
- Peer connection state.
- Connectivity statistics.
- Whether the BGP peer is automatically generated.
- Array of BGP routing policy maps applied to the peers in ingress/egress direction.