Windows Azure for Developers Task 1: Resolving Failed to initialize Windows Azure storage emulator Error

I thought to start learning Windows Azure. I installed Azure SDK and created a project by choosing Windows Azure project template from cloud tab and creating a Web Role.

clip_image002clip_image003

I just put a label on aspx file and when tried running the project I got the below error

clip_image004

When I switched to Output Window, I got the Error message

Windows Azure Tools: Failed to initialize Windows Azure storage emulator. Unable to start Development Storage. Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found. Please configure the SQL Server instance for Development Storage using the ‘DSInit’ utility in the Windows Azure SDK.

clip_image006

So to resolve this, Open command prompt in Administrator mode

clip_image007

Change Directory to C:\ProgramFiles\WindowsAzureSDK\v1.3\Bin\DevStore

clip_image009

Now type the command

C:\Program Files\Windows azure SDK\v1.3\bin\devstore DSINIT /SQLINSTANCE:SQLTest /Forcecreate

Only couple of point to notice in executing above command is

SQLTEST: It is name of the SQL Server instance. Make sure you are giving name of SQL Server instance name here rather than your PC name.

If you are not providing valid SQL Server instance name then you may get below exception.

clip_image010

On successfully execution of command , you will get below Dialog box for the success message.

clip_image011

3 responses to “Windows Azure for Developers Task 1: Resolving Failed to initialize Windows Azure storage emulator Error”

  1. […] This post was mentioned on Twitter by Dhananjay Kumar, Dhananjay Kumar. Dhananjay Kumar said: http://bit.ly/grBL75 : Resolving Failed to initialize Windows Azure storage emulator Error #Azure […]

  2. How do I find my Azure sql instance name to put instead of SQLTest? I tried using the name of the databse on the management portal as well as the fully qualified DNS name and it still wont work.

  3. […] Windows Azure for Developers Task 1: Resolving Failed to initialize Windows Azure storage emulator E… […]

Leave a comment

Create a website or blog at WordPress.com