Get-AzPeeringService
取得具有指定訂用帳戶和資源群組下指定名稱的現有對等互連服務。
語法
Get-AzPeeringService
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringService
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringService
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringService
-InputObject <IPeeringIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得具有指定訂用帳戶和資源群組下指定名稱的現有對等互連服務。
範例
範例 1:列出訂用帳戶下的所有對等互連服務
Get-AzPeeringService
Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
---- ----------------- ---------------------- -------- ----------------- --------
TestPrefixForAtlanta DemoRG Georgia MicrosoftEdge Succeeded East US 2
TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
TestExtension2 DemoRG Virginia MicrosoftEdge Succeeded East US
DemoPeeringServiceInterCloudLondon DemoRG London InterCloud Succeeded UK South
DRTestInterCloud DemoRG Ile-de-France InterCloud Succeeded UK South
Gaurav Thareja DemoRG Ile-de-France InterCloud Succeeded UK South
TestDRInterCloudZurich DemoRG Zurich InterCloud Succeeded France Central
DRTest DemoRG Ile-de-France InterCloud Succeeded France Central
列出預設訂用帳戶下的所有對等互連服務
範例 2:列出特定資源群組下的所有對等互連服務
Get-AzPeeringService -ResourceGroupName DemoRG
Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
---- ----------------- ---------------------- -------- ----------------- --------
TestPrefixForAtlanta DemoRG Georgia MicrosoftEdge Succeeded East US 2
TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
TestExtension2 DemoRG Virginia MicrosoftEdge Succeeded East US
DemoPeeringServiceInterCloudLondon DemoRG London InterCloud Succeeded UK South
DRTestInterCloud DemoRG Ile-de-France InterCloud Succeeded UK South
Gaurav Thareja DemoRG Ile-de-France InterCloud Succeeded UK South
TestDRInterCloudZurich DemoRG Zurich InterCloud Succeeded France Central
DRTest DemoRG Ile-de-France InterCloud Succeeded France Central
列出資源群組下的所有對等互連服務
範例 3:列出特定資源群組下的所有對等互連服務
Get-AzPeeringService -ResourceGroupName DemoRG -Name TestExtension
Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
---- ----------------- ---------------------- -------- ----------------- --------
TestExtension DemoRG Virginia MicrosoftEdge Succeeded East 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 |
別名: | PeeringServiceName |
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 |