Dela via


Set-AzExpressRouteCircuitConnectionConfig

Uppdaterar en kretsanslutningskonfiguration som skapats i privata peerings för en Express Route-krets.

Syntax

Set-AzExpressRouteCircuitConnectionConfig
   [-Name] <String>
   [-ExpressRouteCircuit] <PSExpressRouteCircuit>
   [-AddressPrefix] <String>
   [-AddressPrefixType <String>]
   [-AuthorizationKey <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzExpressRouteCircuitConnectionConfig
   [-Name] <String>
   [-ExpressRouteCircuit] <PSExpressRouteCircuit>
   [-PeerExpressRouteCircuitPeering] <String>
   [-AddressPrefix] <String>
   [-AddressPrefixType <String>]
   [-AuthorizationKey <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Cmdleten Set-AzExpressRouteCircuitConnectionConfig uppdaterar en kretsanslutningskonfiguration som skapats i privat peering för en ExpressRoute-krets. Detta möjliggör peering av två Express Route-kretsar mellan regioner eller prenumerationer. Observera att innan du kör Set-AzExpressRouteCircuitConnectionConfig måste du lägga till kretsanslutningen med hjälp av Add-AzExpressRouteCircuitConnectionConfig. När du har kört Set-AzExpressRouteCircuitPeeringConfig måste du anropa cmdleten Set-AzExpressRouteCircuit för att aktivera konfigurationen.

Exempel

Exempel 1: Uppdatera en kretsanslutningsresurs till en befintlig ExpressRoute-krets

$circuit_init = Get-AzExpressRouteCircuit -Name $initiatingCircuitName -ResourceGroupName $rg
$circuit_peer = Get-AzExpressRouteCircuit -Name $peeringCircuitName -ResourceGroupName $rg
$addressSpace = 'aa:bb::0/125'
$addressPrefixType = 'IPv6'
Set-AzExpressRouteCircuitConnectionConfig -Name $circuitConnectionName -ExpressRouteCircuit $circuit_init -PeerExpressRouteCircuitPeering $circuit_peer.Peerings[0].Id -AddressPrefix $addressSpace -AddressPrefixType $addressPrefixType -AuthorizationKey $circuit_peer.Authorizations[0].AuthorizationKey
Set-AzExpressRouteCircuit -ExpressRouteCircuit $circuit_init

Exempel 2: Ange en kretsanslutningskonfiguration med piping till en befintlig ExpressRoute-krets

$circuit_peer = Get-AzExpressRouteCircuit -Name $peeringCircuitName -ResourceGroupName $rg
$addressSpace = '60.0.0.0/29'
Get-AzExpressRouteCircuit -Name $initiatingCircuitName -ResourceGroupName $rg|Set-AzExpressRouteCircuitConnectionConfig -Name $circuitConnectionName -PeerExpressRouteCircuitPeering $circuit_peer.Peerings[0].Id -AddressPrefix $addressSpace -AuthorizationKey $circuit_peer.Authorizations[0].AuthorizationKey |Set-AzExpressRouteCircuit

Parametrar

-AddressPrefix

Ett minsta /29-kundadressutrymme för att skapa VxLan-tunnlar mellan Express Route-kretsar för IPv4-tunnlar. eller minst /125 kundadressutrymme för att skapa VxLan-tunnlar mellan Express Route-kretsar för IPv6-tunnlar.

Typ:String
Position:3
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-AddressPrefixType

Anger den adressfamilj som adressprefixet tillhör.

Typ:String
Godkända värden:IPv4, IPv6
Position:Named
Standardvärde:IPv4
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-AuthorizationKey

Auktoriseringsnyckel för att peerkoppla Express Route Circuit i en annan prenumeration. Auktorisering på peer-krets kan skapas med befintliga kommandon.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Typ:SwitchParameter
Alias:cf
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:IAzureContextContainer
Alias:AzContext, AzureRmContext, AzureCredential
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ExpressRouteCircuit

ExpressRoute-kretsen ändras. Det här är Ett Azure-objekt som returneras av cmdleten Get-AzExpressRouteCircuit .

Typ:PSExpressRouteCircuit
Position:1
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-Name

Namnet på kretsanslutningsresursen som ska läggas till.

Typ:String
Position:0
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-PeerExpressRouteCircuitPeering

Resurs-ID för privat peering av fjärrkretsen som ska peer-kopplas med den aktuella kretsen.

Typ:String
Position:2
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-WhatIf

Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.

Typ:SwitchParameter
Alias:wi
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

Indata

PSExpressRouteCircuit

String

Utdata

PSExpressRouteCircuit