Gets an existing peering with the specified name under the given subscription and resource group.
Examples
Example 1: List all peerings
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
List all peerings in subscription
Example 2: Get specific peering by name and resource group
Name SkuName Kind PeeringLocation ProvisioningState Location
---- ------- ---- --------------- ----------------- --------
DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
Get a specific peering by resource group and name
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.