Azure存储模拟器v4.6.0.0 - 如何列出当前表

时间:2017-04-07 23:34:44

标签: azure-table-storage azure-storage-emulator

我正在使用4.6.0.0的azure存储模拟器。无论如何都要列出当前在模拟器中的表格,或者通过网络浏览器调用,例如

http://127.0.0.1:10002/devstoreaccount1/[some args?]

或者在模拟器的cmd行?

1 个答案:

答案 0 :(得分:1)

As far as I know, you could directly list the tables at the emulator's cmd line.

Note: you should firstly installed the azure cli.You could install it in this page.

Then you could use the azure cli command to list the all the table in the emulator.

You could try below command:

azure storage table list --connection-string DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;

The result is like below: enter image description here

More details about how to use azure cli and storage Emulator, you could refer to below article.

https://docs.microsoft.com/en-us/azure/storage/storage-azure-cli

https://docs.microsoft.com/en-us/azure/storage/storage-use-emulator