Initialize the Storage Emulator by Using the Command-Line Tool
Updated: April 18, 2014
You can use the storage emulator command-line tool to initialize the storage emulator to point to a different database instance than the default. If you wish to use the default LocalDB database instance, it's not necessary to run a separate initialization step.
This tool is installed by default to the C:\Program Files(x86)\Microsoft SDKs\Azure\Storage Emulator\ directory. Initialization runs automatically the first time you start the emulator.
|You must have administrative privileges to run the init command described below.|
Click the Start button or press the Windows key. Begin typing Windows Azure Storage Emulator and select it when it appears. A command prompt window will pop up.
In the command prompt window, type the following command:
WAStorageEmulator init /sqlInstance <SQLServerInstance>
<SQLServerInstance>is the name of the SQL Server instance. To use LocalDb, specify
(localdb)\v11.0as the SQL Server instance.
You can also use the following command, which directs the emulator to use the default SQL Server instance:
WAStorageEmulator init /server .\\
Or, you can use the following command, which reinitializes the database:
WAStorageEmulator init /forceCreate
|Using the /forcecreate argument removes all existing storage emulator data.|
|You can use the storage emulator command-line tool at any time to configure the Microsoft Azure storage emulator to point to a different instance.|