Gets an existing peering service with the specified name under the given subscription and resource group.
Examples
Example 1: List all peering services under subscription
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
Lists all peering services under default subscription
Example 2: List all peering services under a specific resource group
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
Lists all the peering services under a resource group
Example 3: List all peering services under a specific resource group
Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
---- ----------------- ---------------------- -------- ----------------- --------
TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
Gets a peering service with matching name and resource group
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.