Reputation: 1257
After installing the newest Azure SDK VS2013 update i lost all my existing Development Storage Containers, and are unable to create new ones.
Anyone familiar with this and know how to "re-attach" them or fix otherwise?
Not much info on this on this to be found yet.
EDIT : it seems new blobs are successfully created now, i only miss the ones i had before i updated.
Upvotes: 3
Views: 503
Reputation: 488
I found a relatively simple way to migrate data between versions that took me less than 5 minutes (at least going from AzureStorageEmulatorDb54 -> AzureStorageEmulatorDb57), but as a disclaimer I'm only using blob storage for images
This will also definitely not work if there were schema changes between emulator versions
Before starting, make sure all instances of storage emulator are stopped
What you need to do is generate insert scripts for data you care about from the old database (after you have updated and installed the new version of storage emulator)
In my case, I was able to use the new version of the storage emulator with my old data. YMMV. This will only work if your storage location for the actual files is the default and the default location didn't change between versions. You'll have to move the actual files if this changes.
At the time of writing, the default location for me was: C:\Users\username\AppData\Local\AzureStorageEmulator\BlockBlobRoot\2
Upvotes: 2
Reputation: 1356
Unfortunately, it is expected behavior. Every time you update the storage emulator version, it uses a different database to store the information.
I just suggest that you back-up all the data in development storage manually before you install the newer version of storage emulator in the future. If you're using Azure Storage Explorer, this will ease the backup process:
But yeah, even Storage Explorer couldn't backup all the data in one click. Hopefully, there's a tool to backup data in dev storage with just one click. And of course I wish the next version of emulator doesn't reset the data.
Upvotes: 0
Reputation: 136226
This is expected behavior. Basically when a new version of storage emulator is installed, it creates a new SQL Server Database to store local data.
Unfortunately there is no simple way to get your data into the newer database. One possible solution would be to uninstall the latest version, reinstall the old version and download blobs on your computer. Then install the latest version again and upload the blobs again (I know it's really lame solution). You may find this blog post useful for doing this: http://blog.cerebrata.com/windows-azure-sdk-1-5-and-empty-development-storage/.
Upvotes: 4