Bearbeiten

Freigeben über


Get-AzPeeringLocation

Lists all of the available peering locations for the specified kind of peering.

Syntax

Get-AzPeeringLocation
   [-SubscriptionId <String[]>]
   -Kind <PeeringLocationsKind>
   [-DirectPeeringType <PeeringLocationsDirectPeeringType>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Lists all of the available peering locations for the specified kind of peering.

Examples

Example 1: Get all direct peering locations

Get-AzPeeringLocation -Kind Direct

Get-AzPeeringLocation -Kind Direct

Name             Country AzureRegion         Kind
----             ------- -----------         ----
Amsterdam        NL      West Europe         Direct
Ashburn          US      East US             Direct
Athens           GR      France Central      Direct
Atlanta          US      East US 2           Direct
Auckland         NZ      Australia East      Direct
Barcelona        ES      France Central      Direct
Berlin           DE      West Europe         Direct
...

Gets all peering locations for direct peers

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DirectPeeringType

The type of direct peering.

Type:PeeringLocationsDirectPeeringType
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Kind

The kind of the peering.

Type:PeeringLocationsKind
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The Azure subscription ID.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IPeeringLocation