New-AzIpConfigurationBgpPeeringAddressObject
skapar en ny IpconfigurationBgpPeeringAddressObject
Syntax
New-AzIpConfigurationBgpPeeringAddressObject
-IpConfigurationId <String>
-CustomAddress <System.Collections.Generic.List`1[System.String]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzIpConfigurationBgpPeeringAddressObject skapar ett IpConfigurationBgpPeeringAddressObject-objekt som representerar egenskapen BgpPeeringAddresses i din virtuella nätverksgateway bgpsettings.
Exempel
Exempel 1: Skapa en AzIpConfigurationBgpPeeringAddressObject
$ipconfigurationId1 = '/subscriptions/c886bc58-0000-4e01-993f-e01ba3702aaf/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworkGateways/gw1/ipConfigurations/default'
$addresslist1 = @('169.254.21.5')
$gw1ipconfBgp1 = New-AzIpConfigurationBgpPeeringAddressObject -IpConfigurationId $ipconfigurationId1 -CustomAddress $addresslist1
Ovanstående skapar en IpConfigurationBgpPeeringAddressObject.Det nya objektet kommer att vara gw1ipconfBgp1.
Parametrar
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomAddress
Den virtuella nätverksgatewayen CustomAddress List för BgpPeeringAddresses.
Type: | List<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IpConfigurationId
Den virtuella nätverksgatewayen IpConfigurationId för BgpPeeringAddresses.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indata
None