Get-​Azure​Rm​Route​Config

Gets routes from a route table.

Syntax

Get-AzureRmRouteConfig
   [-Name <String>]
   -RouteTable <PSRouteTable>
   [<CommonParameters>]

Description

The Get-AzureRmRouteConfig cmdlet gets routes from an Azure route table. You can specify a route by name.

Examples

Example 1: Get a route table

PS C:\>Get-AzureRmRouteTable -ResourceGroupName "ResourceGroup11" -Name "RouteTable01" | Get-AzureRmRouteConfig -Name "Route07"
Name              : route07
Id                : 
Etag              : 
ProvisioningState : 
AddressPrefix     : 10.1.0.0/16
NextHopType       : VnetLocal
NextHopIpAddress  :

This command gets the route table named RouteTable01 by using the Get-AzureRmRouteTable cmdlet. The command passes that table to the current cmdlet by using the pipeline operator. The current cmdlet gets the route named Route07 in the route table named RouteTable01.

Required Parameters

-RouteTable

Specifies the route table from which this cmdlet gets routes.

Type:PSRouteTable
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Name

Specifies the name of the route that this cmdlet gets.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False