In Azure Development 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:
Azure Storage Emulator
to bring up the storage emulator command-line tool.AzureStorageEmulator init /forceCreate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.