Edit

Share via


Get-AzExpressRouteCrossConnection

Gets an Azure ExpressRoute cross connection from Azure.

Syntax

Default (Default)

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

Description

The Get-AzExpressRouteCrossConnection cmdlet is used to retrieve an ExpressRoute cross connection object from your subscription. AzureRmExpressRouteCrossConnection

Examples

Example 1: Get the ExpressRoute cross connection

Get-AzExpressRouteCrossConnection -Name $CrossConnectionName -ResourceGroupName $rg

Example 2: List the ExpressRoute cross connections using a filter

Get-AzExpressRouteCrossConnection -Name test*

This cmdlet will list all ExpressRoute cross connections that begin with "test"

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 ExpressRoute cross connection.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ResourceGroupName

The name of the resource group that contains the ExpressRoute cross connection.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
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.

Inputs

None

This cmdlet does not accept any input.

Outputs

PSExpressRouteCrossConnection