Get-AzExpressRoutePort

Gets an Azure ExpressRoutePort resource.

Syntax

Get-AzExpressRoutePort
   [-ResourceGroupName <String>]
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzExpressRoutePort
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzExpressRoutePort cmdlet is used to retrieve an ExpressRoutePort object from your subscription. The expressrouteport object returned can be used as input to other cmdlets that operate on ExpressRoutePort.

Examples

Example 1

PS C:\> Get-AzExpressRoutePort -Name $PortName -ResourceGroupName $rg

Gets the ExpressRoutePort object with name $PortName in resource group $rg in your subscription.

Example 2

PS C:\> Get-AzExpressRoutePort -Name test*

Gets all of the ExpressRoutePort objects whose name starts with "test".

Example 3

PS C:\> Get-AzExpressRoutePort -ResourceId $id

Gets the ExpressRoutePort object with ResourceId $id.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the ExpressRoutePort.

Type:String
Aliases:ResourceName
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:True
-ResourceGroupName

The resource group name of the ExpressRoutePort.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:True
-ResourceId

ResourceId of the express route port.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

String

Outputs

Microsoft.Azure.Commands.Network.Models.PSExpressRoutePort