Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename Azure Storage Table?

Is it not possible to rename an Azure Storage Table?

I cannot seem to find anything online (not even cmdlets). There are no options for this in Visual Studio Server Explorer, Cloud Storage Studio or TableXplorer.

like image 447
Dave New Avatar asked Dec 02 '13 07:12

Dave New


People also ask

How do I rename my Azure Storage table?

It is not possible to rename an Azure Storage Table (or Blob Container or Queue for that matter). Possible solution would be to download all entities from the table and upload them again in another table. Once all entities are uploaded, you can then delete the old table.

Can you rename an Azure storage container?

You can't rename a blob container in Windows Azure. What you could do is create a new blob container with the new name and copy blobs from old blob container to the new one. Once the blobs are copied, you can delete the old blob container.

How do I rename a folder in Azure storage explorer?

To rename a file or a folder, simply select the file or folder and either click the “Rename” button from the top button bar or invoke the context menu and choose “Rename…” option. You can then specify the new name for the file or folder in the popup window that opens up.


3 Answers

You're correct. It is not possible to rename an Azure Storage Table (or Blob Container or Queue for that matter).

Possible solution would be to download all entities from the table and upload them again in another table. Once all entities are uploaded, you can then delete the old table. When downloading entities, please do keep Continuation Token in mind as querying table would return up to 1000 entities per request.

You can download all entities using either Cloud Storage Studio (or Azure Management Studio) from Cerebrata or TableXplorer. If you want, you can use Azure Management Cmdlets from Cerebrata as well. It has cmdlets to export a table (Export-Table) and restore a table (Restore-Table).

like image 55
Gaurav Mantri Avatar answered Sep 27 '22 18:09

Gaurav Mantri


Now, you can rename Azure Tables with Microsoft's "Microsoft Azure Storage Explorer" (after version 0.8.3). You can also rename containers and file shares with this tool. See the release notes here.

Note that this feature has the following disclaimer during usage.

Renaming works by copying to the new name, then deleting the source item. Renaming a table currently loses the table's properties and metadata, and may take a while if there are lots of entities.

Therefore this is not an actual renaming behind the scenes and incurs read/write/transaction costs.

like image 43
Nuri Tasdemir Avatar answered Sep 27 '22 17:09

Nuri Tasdemir


You can also use AzCopy, which is a Microsoft command line tool for downloading/moving table data.

like image 37
loneshark99 Avatar answered Sep 27 '22 18:09

loneshark99