New-AzVpnSiteLink

Erstellt ein Azure VpnSiteLink -Objekt.

Syntax

New-AzVpnSiteLink
   -Name <String>
   -IPAddress <String>
   [-LinkProviderName <String>]
   [-LinkSpeedInMbps <UInt32>]
   [-BGPAsn <UInt32>]
   [-BGPPeeringAddress <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzVpnSiteLink
   -Name <String>
   -Fqdn <String>
   [-LinkProviderName <String>]
   [-LinkSpeedInMbps <UInt32>]
   [-BGPAsn <UInt32>]
   [-BGPPeeringAddress <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Beschreibung

Erstellt ein Azure VpnSiteLink -Objekt.

Beispiele

Beispiel 1

New-AzResourceGroup -Location "West US" -Name "testRG"
$virtualWan = New-AzVirtualWan -ResourceGroupName testRG -Name myVirtualWAN -Location "West US"
$vpnSiteAddressSpaces = New-Object string[] 2
$vpnSiteAddressSpaces[0] = "192.168.2.0/24"
$vpnSiteAddressSpaces[1] = "192.168.3.0/24"

$vpnSiteLink = New-AzVpnSiteLink -Name "testVpnSiteLink1" -IpAddress "15.25.35.45" -LinkProviderName "SomeTelecomProvider" -LinkSpeedInMbps "10"
$vpnSite = New-AzVpnSite -ResourceGroupName "testRG" -Name "testVpnSite" -Location "West US" -VirtualWan $virtualWan -AddressSpace $vpnSiteAddressSpaces -DeviceModel "SomeDevice" -DeviceVendor "SomeDeviceVendor" -VpnSiteLink @($vpnSiteLink)

Im obigen Beispiel wird eine Ressourcengruppe, ein virtuelles WAN und eine VpnSite mit 1 VpnSiteLinks in West US in der Ressourcengruppe "testRG" in Azure erstellt.

Beispiel 2

Erstellt ein Azure VpnSiteLink -Objekt. (automatisch generiert)

New-AzVpnSiteLink -BGPAsn <UInt32> -BGPPeeringAddress <String> -IPAddress '15.25.35.45' -LinkProviderName 'SomeTelecomProvider' -LinkSpeedInMbps '10' -Name 'testVpnSiteLink1'

Parameter

-BGPAsn

Der BGP ASN für diesen VpnSiteLink.

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BGPPeeringAddress

Die BGP-Peeringadresse für diesen VpnSiteLink.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Fqdn

Der nächste Hop-Fqdn.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IPAddress

Der nächste Hop IpAddress.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-LinkProviderName

Linkanbietername.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LinkSpeedInMbps

Verbindungsgeschwindigkeit in Mbps.

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

None

Ausgaben

PSVpnSiteLink