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
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.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the ExpressRoutePort.
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceGroupName
The resource group name of the ExpressRoutePort.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceId
ResourceId of the express route port.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Related Links
Azure PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기