Get-AzExpressRoutePort
Gets an Azure ExpressRoutePort resource.
Syntax
ResourceNameParameterSet (Default)
Get-AzExpressRoutePort
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameterSet
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
Get-AzExpressRoutePort -Name $PortName -ResourceGroupName $rg
Gets the ExpressRoutePort object with name $PortName in resource group $rg in your subscription.
Example 2
Get-AzExpressRoutePort -Name test*
Gets all of the ExpressRoutePort objects whose name starts with "test".
Example 3
Get-AzExpressRoutePort -ResourceId $id
Gets the ExpressRoutePort object with ResourceId $id.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
The name of the ExpressRoutePort.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Aliases: | ResourceName |
Parameter sets
ResourceNameParameterSet
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ResourceGroupName
The resource group name of the ExpressRoutePort.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
ResourceNameParameterSet
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ResourceId
ResourceId of the express route port.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ResourceIdParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
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.