共用方式為


Get-AzExpressRouteCircuitRouteTable

從 ExpressRoute 線路取得路由表。

語法

Default (預設值)

Get-AzExpressRouteCircuitRouteTable
    -ResourceGroupName <String>
    -ExpressRouteCircuitName <String>
    -PeeringType <String>
    -DevicePath <DevicePathEnum>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Get-AzExpressRouteCircuitRouteTable Cmdlet 會擷取 ExpressRoute 線路的詳細路由表。 路由表將顯示所有路由,也可以進行篩選以顯示特定對等互連類型的路由。 您可以使用路由表來驗證對等節點組態和連線能力。

範例

範例 1:顯示主要路徑的路由表

Get-AzExpressRouteCircuitRouteTable -ResourceGroupName $RG -ExpressRouteCircuitName $CircuitName -PeeringType 'AzurePrivatePeering' -DevicePath 'Primary'

參數

-DefaultProfile

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

參數屬性

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

參數集

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

-DevicePath

此參數的可接受值為: PrimarySecondary

參數屬性

類型:DevicePathEnum
預設值:None
接受的值:Primary, Secondary
支援萬用字元:False
不要顯示:False

參數集

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

-ExpressRouteCircuitName

正在檢查的 ExpressRoute 線路名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:名稱, 資源名稱

參數集

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

-PeeringType

此參數的可接受值為: AzurePrivatePeeringAzurePublicPeeringMicrosoftPeering

參數屬性

類型:String
預設值:None
接受的值:AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
支援萬用字元:False
不要顯示:False

參數集

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

-ResourceGroupName

包含 ExpressRoute 線路的資源群組名稱。

參數屬性

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

參數集

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

CommonParameters

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

輸入

String

輸出

PSExpressRouteCircuitRoutesTable