Get-AzExpressRoutePort
Gets an Azure ExpressRoutePort resource.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
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
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of the ExpressRoutePort.
| Type: | String |
| Aliases: | ResourceName |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | True |
The resource group name of the ExpressRoutePort.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | True |
ResourceId of the express route port.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |