Edit

Share via


Get-AzVirtualNetworkGatewayRoutesInformation

Retrieves the route set information for an ExpressRoute Gateway, based on its resiliency.

Syntax

Default (Default)

Get-AzVirtualNetworkGatewayRoutesInformation
    -ResourceGroupName <String>
    -VirtualNetworkGatewayName <String>
    [-AttemptRefresh <Boolean>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzVirtualNetworkGatewayRoutesInformation cmdlet retrieves detailed route set information for an ExpressRoute Gateway. This operation provides insights into the routes configured for the gateway, including the associated resiliency metrics and their status.

By default, the cmdlet retrieves the current route set information for the gateway. If you wish to refresh the data and recalculate the route set information (for example, after making changes to the gateway), you can use the -AttemptRefresh parameter. This triggers the recalculation of the routes information and ensures that the most up-to-date data is retrieved.

The route set information can help evaluate the gateway's resiliency, availability, and its ability to handle different network traffic conditions.

Examples

Example 1

Get-AzVirtualNetworkGatewayRoutesInformation -ResourceGroupName "test_rg" -VirtualNetworkGatewayName "test_gateway"

This example retrieves the route set information for the virtual network gateway named "test_gateway" in the resource group "test_rg". The command provides the current routing information, including details about the gateway's resiliency and routes configuration.

Example 2

Get-AzVirtualNetworkGatewayRoutesInformation -ResourceGroupName "test_rg" -VirtualNetworkGatewayName "test_gateway" -AttemptRefresh $true

This example retrieves the route set information for the "test_gateway" in the "test_rg" resource group. The -AttemptRefresh parameter is used to recalculate the route sets, ensuring that the most recent data is returned after any potential configuration changes or updates to the gateway's routing information.

Parameters

-AttemptRefresh

Attempt to recalculate the Route Sets Information for the gateway.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-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

-ResourceGroupName

The resource group name of the virtual network gateway.

Parameter properties

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

Parameter sets

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

-VirtualNetworkGatewayName

The name of the virtual network gateway.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
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

Outputs

PSGatewayRouteSetsInformation