How to deploy Neo4j to Azure with Visual Studio 2012 - Download the Azure SDK and Configure Azure in Visual Studio Server Explorer

UPDATE 7/12/2013: This blog post series was created with Azure SDK 1.8. I spent a bit of time trying to upgrade it to Azure SDK 2.0 and ran into too many breaking changes and not enough motivation to figure them all out. I recommend following the steps in this post: “Point-Click Deployment of Neo4j to Windows Azure“ instead. Thanks, Jon

Part 0. How to deploy Neo4j to Azure using Visual Studio 2012 – Overview

Part 1. Create Azure Account and Prepare Azure for Neo4j Deployment

Part 2. Download the Azure SDK and Configure Azure in Visual Studio Server Explorer

Part 3. Download and Configure the Neo4j.Azure.Server Solution

Part 4. Upload Java and Neo4j to Azure

Part 5. Deploy Neo4j to Azure

<—Previous Step Next Step –>

Get the Windows Azure SDK

Download and install the Windows Azure SDK for .NET
image_thumb17_thumb

Get Publish Settings File

Download your publish settings file by going to this page. Remember where you saved this, you’ll need it later.

Modify the Temp Folder Path

The default Azure temp folder is too long. In Windows 8 search for environment, Click Settings and then “Edit Environment variables for your account”
image_thumb[11]

Create a new user variable:
Name: _CSRUN_STATE_DIRECTORY

Value: c:\A
image_thumb[13]

Add New Storage Account to Server Explorer

Open VS and then open Server Explorer. Right click on Windows Azure Storage and select “Add New Storage Account…”
image_thumb18_thumb

Click the Import button, find the file you downloaded in Step 4. The dialog should look something like this after you have imported it.
image_thumb[3]

Copy the “Preview connection string” to a safe place, you’ll need it later. Click OK. Back in Server Explorer you will now see the new storage node (neo4j2 in my case). Neo4j will be hosted in a Container within a Blob.
image_thumb[5]

Add New Deployment Environment to Server Explorer

Open VS and then open Server Explorer. Right click on Windows Azure Compute and select “Add Deployment Environment…”
image_thumb[1]

Add Staging, then come back and Add Production.
image_thumb[7]

image_thumb[9]

Alright, Visual Studio is all configured. Move on to the next step…

<—Previous Step Next Step –>

Share