共用方式為


New-AzVpnSiteLink

建立 Azure VpnSiteLink 物件。

語法

ByVpnSiteLinkIpAddress

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

ByVpnSiteLinkFqdn

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

Description

建立 Azure VpnSiteLink 物件。

範例

範例 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)

上述會在 Azure 的 「testRG」 資源群組中建立資源群組、虛擬 WAN 和具有 1 個 VpnSiteLinks 的 VpnSite。

範例 2

建立 Azure VpnSiteLink 物件。 (autogenerated)

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

參數

-BGPAsn

此 VpnSiteLink 的 BGP ASN。

參數屬性

類型:UInt32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-BGPPeeringAddress

此 VpnSiteLink 的 BGP 對等互連位址。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Fqdn

下一跳 fqdn。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

ByVpnSiteLinkFqdn
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-IPAddress

下一個躍點 IpAddress。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

ByVpnSiteLinkIpAddress
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-LinkProviderName

連結提供者名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-LinkSpeedInMbps

鏈路速度(以Mbps為單位)。

參數屬性

類型:UInt32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Name

名稱

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

輸出

PSVpnSiteLink