In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzRouteTable Azure PowerShell cmdlet with usage examples.
Table of Contents
The Get-AzRouteTable PowerShell command can help you to retrieve the route tables under a specified Resource Group.
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.
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 below screenshot to see the same output
You can run the below PowerShell command to get the “TsinfoRT” Routing table details which is present under the “DEMORG1” Resource Group.
Get-AzRouteTable -ResourceGroupName "DEMORG1" -Name "TsinfoRT"
You can check out the expected output that I got in the below screenshot.
Get-AzRouteTable PowerShell Command – Video Tutorial
You may be interested to check out the below articles
Well, in this Azure PowerShell article, we discussed the syntax and usage of the Get-AzRouteTable PowerShell command. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.