Get-AzPeering
取得具有指定訂用帳戶和資源群組下指定名稱的現有對等互連。
語法
Get-AzPeering
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeering
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeering
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeering
-InputObject <IPeeringIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得具有指定訂用帳戶和資源群組下指定名稱的現有對等互連。
範例
範例 1:列出所有對等互連
Get-AzPeering
Name SkuName Kind PeeringLocation ProvisioningState Location
---- ------- ---- --------------- ----------------- --------
DemoComp1 Premium_Direct_Free Direct Dallas Succeeded South Central US
DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
TestEdgeZone Premium_Direct_Free Direct Atlanta Succeeded East US 2
MapsIxRs Premium_Direct_Free Direct Ashburn Succeeded East US
DemoMapsConfig Premium_Direct_Free Direct Seattle Succeeded West US 2
testexchange Basic_Exchange_Free Exchange Amsterdam Succeeded West Europe
TestPeer1 Basic_Direct_Free Direct Amsterdam Succeeded West Europe
test1 Basic_Direct_Free Direct Athens Succeeded France Central
列出訂用帳戶中的所有對等互連
範例 2:依名稱和資源群組取得特定對等互連
Get-AzPeering -Name DemoPeering -ResourceGroupName DemoRG
Name SkuName Kind PeeringLocation ProvisioningState Location
---- ------- ---- --------------- ----------------- --------
DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
依資源組名取得特定的對等互連
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IPeeringIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
對等互連的名稱。
類型: | String |
別名: | PeeringName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
Azure 訂閱識別碼。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |