Update-AzVirtualHubBgpConnection
De cmdlet Update-AzVirtualHubBgpConnection werkt een bestaande HubBgpConnection-resource (Virtual WAN Hub BGP Connection) bij.
Syntaxis
Update-AzVirtualHubBgpConnection
-ResourceGroupName <String>
-VirtualHubName <String>
-Name <String>
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnection <PSHubVirtualNetworkConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
-ResourceGroupName <String>
-VirtualHubName <String>
-Name <String>
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnectionId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
-Name <String>
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnection <PSHubVirtualNetworkConnection>
-VirtualHub <PSVirtualHub>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
-Name <String>
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnectionId <String>
-VirtualHub <PSVirtualHub>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnection <PSHubVirtualNetworkConnection>
-ResourceId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
-PeerIp <String>
-PeerAsn <UInt32>
-VirtualHubVnetConnectionId <String>
-ResourceId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
[-PeerIp <String>]
[-PeerAsn <UInt32>]
-VirtualHubVnetConnection <PSHubVirtualNetworkConnection>
-InputObject <PSBgpConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
[-PeerIp <String>]
[-PeerAsn <UInt32>]
-VirtualHubVnetConnectionId <String>
-InputObject <PSBgpConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzVirtualHubBgpConnection
[-PeerIp <String>]
[-PeerAsn <UInt32>]
[-VirtualHubVnetConnection <PSHubVirtualNetworkConnection>]
[-VirtualHubVnetConnectionId <String>]
-InputObject <PSBgpConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De cmdlet Update-AzVirtualHubBgpConnection werkt een bestaande HubBgpConnection-resource (Virtual WAN Hub BGP Connection) bij.
Voorbeelden
Voorbeeld 1
New-AzResourceGroup -Location "West US" -Name "testRG"
$frontendSubnet = New-AzVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "192.168.1.0/24"
$backendSubnet = New-AzVirtualNetworkSubnetConfig -Name backendSubnet -AddressPrefix "192.168.2.0/24"
$remoteVirtualNetwork = New-AzVirtualNetwork -Name "testVirtualNetwork" -ResourceGroupName "testRG" -Location "West US" -AddressPrefix "192.168.0.0/16" -Subnet $frontendSubnet,$backendSubnet
$virtualWan = New-AzVirtualWan -ResourceGroupName "testRG" -Name "testWan" -Location "West US"
New-AzVirtualHub -VirtualWan $virtualWan -ResourceGroupName "testRG" -Name "testHub" -AddressPrefix "10.0.1.0/24"
$hubVnetConnection = New-AzVirtualHubVnetConnection -ResourceGroupName "testRG" -VirtualHubName "testHub" -Name "testVnetConnection" -RemoteVirtualNetwork $remoteVirtualNetwork
New-AzVirtualHubBgpConnection -ResourceGroupName "testRG" -VirtualHubName "testHub" -PeerIp 192.168.1.5 -PeerAsn 20000 -Name "testBgpConnection" -VirtualHubVnetConnection $hubVnetConnection
Update-AzVirtualHubBgpConnection -ResourceGroupName "testRG" -VirtualHubName "testHub" -PeerIp 192.168.1.6 -PeerAsn 20000 -Name "testBgpConnection" -VirtualHubVnetConnection $hubVnetConnection
Name : testBgpConnection
Id : /subscriptions/{subscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualHubs/testHub/bgpConnections/testBgpConnection
HubVirtualNetworkConnection : /subscriptions/{subscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualHubs/testHub/hubVirtualNetworkConnections/testVnetConnection
PeerAsn : 20000
PeerIp : 192.168.1.6
Met het bovenstaande maakt u een resourcegroep, Virtual WAN, Virtual Network, Virtual WAN Hub in VS - west en verbindt u het virtuele netwerk met de Virtual WAN-hub in die resourcegroep in Azure. Hierna wordt een BGP-verbinding voor de Virtual WAN-hub gemaakt, die de Virtual WAN-hub koppelt aan het netwerkapparaat dat in het virtuele netwerk is geïmplementeerd. Deze BGP-verbinding van de Virtual WAN-hub wordt vervolgens bijgewerkt met een ander peer-IP-adres.
Parameters
-AsJob
Cmdlet op de achtergrond uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
Hiermee wordt u 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, accounts, tenants en abonnementen 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 |
-InputObject
De BGP-verbindingsresource van de virtuele hub.
Type: | PSBgpConnection |
Aliassen: | VirtualHubBgpConnection |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Name
De resourcenaam.
Type: | String |
Aliassen: | ResourceName, BgpConnectionName |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PeerAsn
De peer-ASN.
Type: | UInt32 |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PeerIp
Het peer-IP-adres.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
De naam van de resourcegroep.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceId
De resource-id.
Type: | String |
Aliassen: | BgpConnectionId |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VirtualHub
De resource van de virtuele hub.
Type: | PSVirtualHub |
Aliassen: | ParentObject, ParentVirtualHub |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-VirtualHubName
De naam van de virtuele hub.
Type: | String |
Aliassen: | ParentResourceName, ParentVirtualHubName |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VirtualHubVnetConnection
De VirtualHubVnetConnection-resource.
Type: | PSHubVirtualNetworkConnection |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VirtualHubVnetConnectionId
De resource-id virtualHubVnetConnection.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. 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