The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet

In this azure tutorial, we will discuss how to fix the error, The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet. which I got while trying to get the rows from the Azure Storage tables using PowerShell ISE in Azure.

The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet

Recently, I was trying to execute the PowerShell script to retrieve the rows from the Azure Storage tables. I got the error ” The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet “ after executing the PowerShell script.

Below is the PowerShell script that i used to retrieve the Azure storage table rows.

$mystorageacntName = "mynewstoragedemo" 
$mystorageacntKey = "pNWgITmf33ROgS1ixyUAQ4fIQIhaqBUWQjwI79/PjLy9zRoqEsvOQ7fn1gu41sj+dQ9eCHA/sDew8/OhDMfI9w==" 
$cntx = New-AzStorageContext $mystorageacntName -StorageAccountKey $mystorageacntKey
$mycloudTable = (Get-AzStorageTable –Name "AzureWebJobsHostLogs202008" –Context $cntx).CloudTable
Get-AzTableRow -Table $mycloudTable

You can able to see i got the below error after executing the above script.

The term Get AzTableRow is not recognized as the name of a cmdlet

Below is the exact error message that i got

Get-AzTableRow: The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:5 char:1

  • Get-AzTableRow -Table $mycloudTable
  • ~~~~~~
    • CategoryInfo : ObjectNotFound: (Get-AzTableRow:String) [], CommandNotF
      oundException
    • FullyQualifiedErrorId : CommandNotFoundException

The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet [Solved]

Well, Now follow the below steps to fix the error The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet.

Open the Windows PowerShell or PowerShell ISE with Run as Administrator mode

The term 'Get-AzTableRow' is not recognized as the name of a cmdlet,
function,

Now the next step is, Run the below PowerShell cmdlet to install the AzTable module

Install-Module AzTable -Force PS C:\WINDOWS\system32>

You can see below, I have executed the above PowerShell cmdlet and then it started installing the module. It took just 1 second and completed the installation of the AzTable module successfully without any issue.

The term 'Get-AzTableRow' is not recognized

After the successful installation of the AzTable module, You can try again running the PowerShell script to get the rows from the Azure Storage table.

$mystorageacntName = "mynewstoragedemo" 
$mystorageacntKey = "pNWgITmf33ROgS1ixyUAQ4fIQIhaqBUWQjwI79/PjLy9zRoqEsvOQ7fn1gu41sj+dQ9eCHA/sDew8/OhDMfI9w==" 
$cntx = New-AzStorageContext $mystorageacntName -StorageAccountKey $mystorageacntKey
$mycloudTable = (Get-AzStorageTable –Name "AzureWebJobsHostLogs202008" –Context $cntx).CloudTable
Get-AzTableRow -Table $mycloudTable

You can able to see the below screenshot, the script executed successfully without any issue and I got all the rows from the Azure Storage table without any issue

Get-AzTableRow The term 'Get-AzTableRow' is not recognized

You may also like follow the below articles

Wrapping Up

Well, in this article, we discussed how to fix the error The term ‘Get-AzTableRow’ is not recognized as the name of a cmdlet which I got while trying to get the rows from the Azure Storage tables using PowerShell ISE. Hope it will help you to fix your issue as well !!!