In Azure Deve开发者_如何转开发lopment Storage's UI, there's a Reset button which stops, wipes, and restarts the devstore. Is there a programmatic way of doing this, similar to how I can stop and start the storage using
DevStore.Shutdown();
While I haven't reset the devstore programmatically, I suppose you could shell out to DSInit.exe programmatically:
DSInit /ForceCreate
@david-makogon's response is correct for the version of the SDK used in 2011, however in later versions of Azure Storage Emulator dsinit
had been replaced with WAStorageEmulator
and then with AzureStorageEmulator
. (Maybe there was something else in between, but it doesn't matter as long as you use the latest SDK at the time of writing of this answer.)
A good overview of what's used at the moment can be found in Use the Azure Storage Emulator for Development and Testing.
And regarding your question that would be:
- Start
Azure Storage Emulator
to bring up the storage emulator command-line tool. - Run
AzureStorageEmulator init /forceCreate
精彩评论