external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.Azure.PowerShell.Cmdlets.Network.dll-Help.xml |
Az.Network |
2.0.0 |
Gets an Azure ExpressRoutePort resource.
Get-AzExpressRoutePort [-ResourceGroupName <String>] [-Name <String>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzExpressRoutePort -ResourceId <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
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.
Get-AzExpressRoutePort -Name $PortName -ResourceGroupName $rg
Gets the ExpressRoutePort object with name $PortName in resource group $rg in your subscription.
Get-AzExpressRoutePort -Name test*
Gets all of the ExpressRoutePort objects whose name starts with "test".
Get-AzExpressRoutePort -ResourceId $id
Gets the ExpressRoutePort object with ResourceId $id.
The credentials, account, tenant, and subscription used for communication with Azure.
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the ExpressRoutePort.
Type: System.String
Parameter Sets: ResourceNameParameterSet
Aliases: ResourceName
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
The resource group name of the ExpressRoutePort.
Type: System.String
Parameter Sets: ResourceNameParameterSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
ResourceId of the express route port.
Type: System.String
Parameter Sets: ResourceIdParameterSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.