In this Azure PowerShell article, we will discuss the syntax and usage of the New-AzStorageTable PowerShell command with certain examples.
Table of Contents
New-AzStorageTable
This PowerShell command can help you quickly create a storage table.
Syntax
Below is the syntax of the New-AzStorageTable PowerShell command.
New-AzStorageTable
[-Name] <String>
[-Context <IStorageContext>]
Examples
Let’s discuss a few examples of how to use the New-AzStorageTable PowerShell command.
Example-1
You can execute the below Azure PowerShell command to create a storage table with the name “TableAzureLessons”.
$mysARG1 = "Demo123"
$mysAName1 = "demo123b08c"
$mysAKey1 = (Get-AzStorageAccountKey -ResourceGroupName $mysARG1 -AccountName $mysAName1).Value[0]
$myctx1 = New-AzStorageContext -StorageAccountName $mysAName1 -StorageAccountKey $mysAKey1
New-AzStorageTable -Name "TableAzureLessons" -Context $myctx1
After executing the above command, I got the below-expected output.
Table End Point: https://demo123b08c.table.core.windows.net/
Name Uri
---- ---
TableAzureLessons https://demo123b08c.table.core.windows.net/TableAzureLessons
You can see the same output in the below screenshot.

Example-2
You can execute the below Azure PowerShell command to create multiple Azure Storage tables at once.
$mysARG1 = "Demo123"
$mysAName1 = "demo123b08c"
$mysAKey1 = (Get-AzStorageAccountKey -ResourceGroupName $mysARG1 -AccountName $mysAName1).Value[0]
$myctx1 = New-AzStorageContext -StorageAccountName $mysAName1 -StorageAccountKey $mysAKey1
"demo1 demo2 demo3".split() | New-AzStorageTable -Context $myctx1
After executing the above PowerShell script, I got the expected output as below
Table End Point: https://demo123b08c.table.core.windows.net/
Name Uri
---- ---
demo1 https://demo123b08c.table.core.windows.net/demo1
demo2 https://demo123b08c.table.core.windows.net/demo2
demo3 https://demo123b08c.table.core.windows.net/demo3
You can find the same output in the below screenshot

You can also use the Get-AzStorageTable PowerShell command to get the lists of the Azure Storage table from the specified storage account.
Wrapping Up
In this Azure PowerShell article, we discussed the syntax and usage of the New-AzStorageTable PowerShell command with certain examples. Thanks for reading this article !!!