Get-AzRouteTable

This Azure PowerShell article will discuss the syntax and usage of the Get-AzRouteTable Azure PowerShell cmdlet with usage examples.

Get-AzRouteTable

The Get-AzRouteTable PowerShell command can help you to retrieve the route tables under a specified Resource Group.

Syntax of Get-AzRouteTable

Below is the syntax of the Get-AzRouteTable PowerShell command.

Get-AzRouteTable
  [-ResourceGroupName <String>]
Get-AzRouteTable
 -ResourceGroupName <String>
 -Name <String>

Let’s discuss a few examples of how to use the Get-AzRouteTable PowerShell command.

Example-1:

Run the below PowerShell command to get the lists of available Routing tables under the “DEMORG1” Resource Group.

Get-AzRouteTable -ResourceGroupName "DEMORG1"

After executing the above command, I got the below output

Name              : TsinfoRT
ResourceGroupName : DEMORG1
Location          : northeurope
Id                : /subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups
                    /DEMORG1/providers/Microsoft.Network/routeTables/TsinfoRT
Etag              : W/"53bc26b8-c27b-4f38-bffe-2f9a6944914a"
ProvisioningState : Succeeded
Tags              : 
Routes            : []
Subnets           : []

Check out the screenshot below to see the same output

Get-AzRouteTable

Example-2:

You can run the below PowerShell command to get the “TsinfoRT” Routing table details under the “DEMORG1” Resource Group.

Get-AzRouteTable -ResourceGroupName "DEMORG1" -Name "TsinfoRT"

You can check out my expected output in the screenshot below.

Get-AzRouteTable PowerShell

Get-AzRouteTable PowerShell Command – Video Tutorial

You may be interested to check out the below articles

Final Thoughts

Well, in this Azure PowerShell article, we discussed the syntax and usage of the Get-AzRouteTable PowerShell command. Thanks for reading this article !!!