Search code examples
azurepowershellazure-storageazure-table-storage

Get azure storage table field type


I am retriving coudTable like this

$cloudTable = (Get-AzStorageTable –Name devAuctioneersCustomers –Context $ctx).CloudTable

and rows

$Rows = Get-AzTableRow -table $cloudTable

and I have all data, but how to get edm type of every field ? I need this since I want to copy that table and there are not any tools in azure for this.


Solution

  • You can just simply use .GetType() method on each column.

    Here is the test at my side:

    enter image description here

    And if you want to copy table to another table, you can use AzCopy version 7.3. See the Note in this section.