Edit

Share via


New-AzPeeringDirectConnectionObject

Create an in-memory object for DirectConnection.

Syntax

Default (Default)

New-AzPeeringDirectConnectionObject
    [-BandwidthInMbps <Int32>]
    [-BgpSessionMaxPrefixesAdvertisedV4 <Int32>]
    [-BgpSessionMaxPrefixesAdvertisedV6 <Int32>]
    [-BgpSessionMd5AuthenticationKey <String>]
    [-BgpSessionMicrosoftSessionIPv4Address <String>]
    [-BgpSessionMicrosoftSessionIPv6Address <String>]
    [-BgpSessionPeerSessionIPv4Address <String>]
    [-BgpSessionPeerSessionIPv6Address <String>]
    [-BgpSessionPrefixV4 <String>]
    [-BgpSessionPrefixV6 <String>]
    [-ConnectionIdentifier <String>]
    [-PeeringDbFacilityId <Int32>]
    [-SessionAddressProvider <String>]
    [-UseForPeeringService <Boolean>]
    [<CommonParameters>]

Description

Create an in-memory object for DirectConnection.

Examples

Example 1: Create a direct connection object

$md5Key = "******"

New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111
BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps
--------------- -------------------- --------------- ------------ ------------------- ------------------- --------------------------
10000           c111111111111        PendingApproval                                  82

Creates an in-memory direct connection object

Parameters

-BandwidthInMbps

The bandwidth of the connection.

Parameter properties

Type:Int32
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

-BgpSessionMaxPrefixesAdvertisedV4

The maximum number of prefixes advertised over the IPv4 session.

Parameter properties

Type:Int32
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

-BgpSessionMaxPrefixesAdvertisedV6

The maximum number of prefixes advertised over the IPv6 session.

Parameter properties

Type:Int32
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

-BgpSessionMd5AuthenticationKey

The MD5 authentication key of the session.

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

-BgpSessionMicrosoftSessionIPv4Address

The IPv4 session address on Microsoft's end.

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

-BgpSessionMicrosoftSessionIPv6Address

The IPv6 session address on Microsoft's end.

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

-BgpSessionPeerSessionIPv4Address

The IPv4 session address on peer's end.

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

-BgpSessionPeerSessionIPv6Address

The IPv6 session address on peer's end.

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

-BgpSessionPrefixV4

The IPv4 prefix that contains both ends' IPv4 addresses.

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

-BgpSessionPrefixV6

The IPv6 prefix that contains both ends' IPv6 addresses.

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

-ConnectionIdentifier

The unique identifier (GUID) for the connection.

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

-PeeringDbFacilityId

The PeeringDB.com ID of the facility at which the connection has to be set up.

Parameter properties

Type:Int32
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

-SessionAddressProvider

The field indicating if Microsoft provides session ip addresses.

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

-UseForPeeringService

The flag that indicates whether or not the connection is used for peering service.

Parameter properties

Type:Boolean
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

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.

Outputs

DirectConnection