Search code examples
azuretestingazure-storageazure-table-storageazure-storage-emulator

How to setup/initialize seed data for Azure Storage Emulator?


I am beginning to try to use Azure Storage Emulator for some integration testing. I am testing a console application that reads data from Azure Table Storage and throws it into a database (a mocked db at this time).

As part of setup/arrange/initialize step, I would like to be able to populate my Emulator's local dev storage with some seed data without having to call our writing api's to write the data into emulated storage, since I am not trying to test that piece.

Is there any way to feed it a database file or something? I've worked on similar efforts in SQLLite and Cassandra Cluster Manager (CCM) that allow for this kind of seed data setup.


Solution

  • No, data must be written into the emulator itself. There is no way to set it up with another sort of file. The emulator emulates the storage service as exactly as possible so for that reason needs to be accessed exactly as one would the real service.