New-AzVpnSiteLink

Skapar ett 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>]

Description

Skapar ett Azure VpnSiteLink-objekt.

Exempel

Exempel 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)

Ovanstående skapar en resursgrupp, Virtual WAN och en VpnSite med 1 VpnSiteLinks i USA, västra i resursgruppen "testRG" i Azure.

Exempel 2

Skapar ett Azure VpnSiteLink-objekt. (automatiskt genererad)

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

Parametrar

-BGPAsn

BGP ASN för denna VpnSiteLink.

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

-BGPPeeringAddress

BGP-peeringadressen för denna VpnSiteLink.

Type:String
Position:Named
Default value:None
Required:False
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

-Fqdn

The Next Hop Fqdn.

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

-IPAddress

Nästa hopp IpAddress.

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

-LinkProviderName

Länkproviderns namn.

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

-LinkSpeedInMbps

Länkhastighet i Mbit/s.

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

Indata

None

Utdata

PSVpnSiteLink