Get-AzPeeringLegacy
Lists all of the legacy peerings under the given subscription matching the specified kind and location.
Syntax
Get-AzPeeringLegacy
[-SubscriptionId <String[]>]
-Kind <LegacyPeeringsKind>
-PeeringLocation <String>
[-Asn <Int32>]
[-DirectPeeringType <DirectPeeringType>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Lists all of the legacy peerings under the given subscription matching the specified kind and location.
Examples
Example 1: Gets legacy peering object
Get-AzPeeringLegacy -Kind Direct -PeeringLocation Seattle
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
Gets legacy peering object
Parameters
-Asn
The ASN number associated with a legacy peering.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 direct peering type.
Type: | DirectPeeringType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Kind
The kind of the peering.
Type: | LegacyPeeringsKind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PeeringLocation
The location of the peering.
Type: | String |
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
Collaborate with us on GitHub
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.
Azure PowerShell