Add-AzExpressRouteCircuitConnectionConfig
Hiermee wordt een circuitverbindingsconfiguratie toegevoegd aan privépeering van een Express Route-circuit.
Syntaxis
Add-AzExpressRouteCircuitConnectionConfig
[-Name] <String>
[-ExpressRouteCircuit] <PSExpressRouteCircuit>
[-AddressPrefix] <String>
[-AddressPrefixType <String>]
[-AuthorizationKey <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzExpressRouteCircuitConnectionConfig
[-Name] <String>
[-ExpressRouteCircuit] <PSExpressRouteCircuit>
[-PeerExpressRouteCircuitPeering] <String>
[-AddressPrefix] <String>
[-AddressPrefixType <String>]
[-AuthorizationKey <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De Add-AzExpressRouteCircuitConnectionConfig cmdlet voegt een circuitverbindingsconfiguratie toe aan persoonlijke peering voor een ExpressRoute-circuit. Hierdoor kunnen twee Express Route-circuits worden gekoppeld tussen regio's of abonnementen. Nadat u Add-AzExpressRouteCircuitConnectionConfighebt uitgevoerd, moet u de Set-AzExpressRouteCircuit cmdlet aanroepen om de configuratie te activeren.
Voorbeelden
Voorbeeld 1: Een circuitverbindingsresource toevoegen aan een bestaand ExpressRoute-circuit
$circuit_init = Get-AzExpressRouteCircuit -Name $initiatingCircuitName -ResourceGroupName $rg
$circuit_peer = Get-AzExpressRouteCircuit -Name $peeringCircuitName -ResourceGroupName $rg
$addressSpace = '60.0.0.0/29'
$addressPrefixType = 'IPv4'
Add-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
Voorbeeld 2: Een configuratie van een circuitverbinding toevoegen met behulp van piping aan een bestaand ExpressRoute-circuit
$circuit_peer = Get-AzExpressRouteCircuit -Name $peeringCircuitName -ResourceGroupName $rg
$addressSpace = '60.0.0.0/29'
Get-AzExpressRouteCircuit -Name $initiatingCircuitName -ResourceGroupName $rg|Add-AzExpressRouteCircuitConnectionConfig -Name $circuitConnectionName -PeerExpressRouteCircuitPeering $circuit_peer.Peerings[0].Id -AddressPrefix $addressSpace -AuthorizationKey $circuit_peer.Authorizations[0].AuthorizationKey |Set-AzExpressRouteCircuit
Parameters
-AddressPrefix
Er is minimaal /29 klantadresruimte om VxLan-tunnels te maken tussen Express Route Circuits voor IPv4-tunnels. of minimaal /125 klantadresruimte om VxLan-tunnels te maken tussen Express Route Circuits voor IPv6-tunnels.
Type: | String |
Position: | 3 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-AddressPrefixType
Hiermee geeft u de adresfamilie waartoe het adresvoorvoegsel behoort.
Type: | String |
Geaccepteerde waarden: | IPv4, IPv6 |
Position: | Named |
Default value: | IPv4 |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-AuthorizationKey
Autorisatiesleutel voor peering van Express Route-circuit in een ander abonnement. Autorisatie op peercircuit kan worden gemaakt met behulp van bestaande opdrachten.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ExpressRouteCircuit
Het ExpressRoute-circuit dat wordt gewijzigd. Dit is een Azure-object dat wordt geretourneerd door de cmdlet Get-AzExpressRouteCircuit.
Type: | PSExpressRouteCircuit |
Position: | 1 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Name
De naam van de circuitverbindingsresource die moet worden toegevoegd.
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PeerExpressRouteCircuitPeering
Resource-id voor privépeering van extern circuit die wordt gekoppeld aan het huidige circuit.
Type: | String |
Position: | 2 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell