< Back

Get-AzureRmRouteTable

Tue Jan 29, 2019 9:54 pm

NAME Get-AzureRmRouteTable



SYNOPSIS

Gets route tables.





SYNTAX

Get-AzureRmRouteTable [-DefaultProfile <IAzureContextContainer>] -ExpandResource <String> -Name <String> -ResourceGroupName <String>

[<CommonParameters>]



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





DESCRIPTION

The Get-AzureRmRouteTable cmdlet gets Azure route tables. You can get a single route table, or get all the route tables in a resource group or in

your subscription.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ExpandResource <String>





Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

Specifies the name of the route table that this cmdlet gets.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group that contains the route tables that this cmdlet gets.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSRouteTable







NOTES









Example 1: Get a route table



PS C:\\>Get-AzureRmRouteTable -ResourceGroupName "ResourceGroup11" -Name "RouteTable01"

Name : routetable01

ResourceGroupName : ResourceGroup11

Location : eastus

Id : /subscriptions/xxxx-xxxx-xxxx-xxxx/resourceGroups/ResourceGroup11/providers/Microsoft.Networ

k/routeTables/routetable01

Etag : W/"db5f4e12-3f34-465b-92dd-0ab3bf6fc274"

ProvisioningState : Succeeded

Tags :

Routes : [

{

"Name": "route07",

"Etag": "W/\\"db5f4e12-3f34-465b-92dd-0ab3bf6fc274\\"",

"Id": "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourceGroups/ResourceGroup11/providers/Micro

soft.Network/routeTables/routetable01/routes/route07",

"AddressPrefix": "10.1.0.0/16",

"NextHopType": "VnetLocal",

"NextHopIpAddress": null,

"ProvisioningState": "Succeeded"

}

]

Subnets : []



This command gets the route table named RouteTable01 in the resource group named ResourceGroup11.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... routetable

New-AzureRmRouteTable

Remove-AzureRmRouteTable

Set-AzureRmRouteTable