Toggle Menu
Charlie Calvert on Elvenware
============================
Writing Code and Prose on Computers
-----------------------------------
Menu
----
Core Code
---------
- [Strongly Typed](../index.html)
- [Web & Scripts](../web/index.html)
- [Cloud](index.shtml)
OS and Tools
------------
- [OS](../../os/index.html)
- [Database](../database/index.html)
- [My Writing](../../books/index.html)
Art
---
- [Poems & Photos](../../Art/index.html)
- [Book Reviews](../../books/reading/index.html)
- [Spiritual](../../spirit/index.html)
Links
-----
- [My Links](../../links.html)
- [Falafel](http://www.falafel.com/)
- [Sourceforge](http://sourceforge.net/projects/elvenware/)
![Elvenware](../../images/elvenwarelogo.png)
Azure on Elvenware V {#azureOnElvenwareV}
====================
This page covers Windows Azure and related subjects.
### Index
- [Install Tips](#installTips)
- [Install NodeJS](#installNodeJS)
- [Php Install](#phpInstall)
- [Python Install](#pythonInstall)
- [Platforms](#platforms)
- [C\#](#c#)
- [NodeJs](#nodeJs)
- [UUID](#uUID)
- [Debugging Your Server Side Code](#debuggingYourServerSideCode)
- [Working on Linux:](#workingOnLinux:)
- [Running Node from NotePad++](#runningNodeFromNotePad++)
- [PHP](#pHP)
- [Python](#python)
- [Running Python on Azure](#runningPythonOnAzure)
- [Using Virtual Machines](#usingVirtualMachines)
- [Using Steve Marx's Solution](#usingSteveMarxsSolution)
- [Express and Jade](#expressAndJade)
- [Storage and SQL Azure](#storageAndSQLAzure)
Azure is Miscrosoft's cloud development platform. Like Amazon Web
Services and other tools, there are several different services, ranging
from storage, to VMs to platforms for installing applications.
Here are links to key areas in the Azure world:
- Main Site:
[https://www.windowsazure.com/en-us/](https://www.windowsazure.com/en-us/)
- Azure Console:
[https://windows.azure.com/](https://windows.azure.com/)
- Developer platform installs:
[https://www.windowsazure.com/en-us/develop/overview/](https://www.windowsazure.com/en-us/develop/overview/)
- 90 Day free Trial:
[https://www.windowsazure.com/en-us/pricing/free-trial/](https://www.windowsazure.com/en-us/pricing/free-trial/)
- Pricing:
[https://www.windowsazure.com/en-us/pricing/calculator/](https://www.windowsazure.com/en-us/pricing/calculator/)
As with Amazon, you need an account and a credit card to start working
in this world. There is a three month free trial available. Again like
Amazon, you probably already have an account with Microsoft, but you
will need to configure it to use the Azure services.
Install Tips {#installTips}
------------
Using the [Microsoft Web Platform
Installer](http://www.microsoft.com/web/downloads/platform.aspx), make
sure you have the latest [Windows Azure SDK for .NET and the Visual
Studio Tools](https://www.windowsazure.com/en-us/develop/net/). This
will give you the
- Azure SDK
- The Azure Emulator
- IIS ASP.NET, .NET, ISAP, HTTP, MVC3
- Visual Studio Tools
![Azure SDK .NE Install](images/Azure01.png)
**Figure 01: Installing the Windows Azure SDK for .NET with the Web
Platform Installer**
[![The success screen for the Azure .net
Install](images/Azure02Small.png)](images/Azure02.png)
**Figure 02: The Successful Install of Azure for .NET and VS**
When you are done, you should be able to choose File | New Project
ASP.NET Web Application in Visual Studio, open the Project Manager,
right click on your projects main node (WebApplication1) and select
**Add Windows Azure deployment project**.
While you have the Web Installer open, there are other tools that you
want to install. Two of the most important are the Python Tools for
Visual Studio and the Windows Azure SDK for NodeJS. These installs
include IIS Node and the Node Package Manager.
[![Python tools for Visual Studio and Node JS
Support](images/Azure03Small.png)](images/Azure03.png)
**Figure 03: Python tools for Visual Studio and Windows Azure SDK for
Node JS Support**
[![Python Tools for VS and NodeJS for Azure Success
Screen](images/Azure04Small.png)](images/Azure04.png)
**Figure 04: Python Tools for VS and NodeJS for Azure Success Screen**
When looking at the Web Platform Installer, you probably noticed that
there is an option to install Visual Studio Service Pack 1. In many
cases, if you check the about screen for Visual Studio, you will find
that you already have SP1 installed, even though this option is
available in the Web Platform Installer. My opinion is that you are all
set so long as you have Visual Studio SP1 installed. If, however, you
feel a strong need to glog up your system with additional useless DLLs
and tools, you can select this option in the Web Platform Installer.
When the procedure completes, you will be greeted with the following
rather depressing list of tools that are now making your system run even
slower than it was. When you go back to the Web Platform Installer, you
will find, of course, that you are still told that you have not
installed VS SP1. Thank you so very much! None of this is meant to
discourage you from installing SP1, which is, of course, an essential
and very valuable tool.
[![Visual Studio SP1
Effluvia](images/Azure05Small.png)](images/Azure05.png)
**Figure 5: Visual Studio SP1 Effluvia.**
### Install NodeJS {#installNodeJS}
You will also need to install the Windows Azure SDK for NodeJS:
[https://www.windowsazure.com/en-us/develop/nodejs/](https://www.windowsazure.com/en-us/develop/nodejs/)
Here is what the Platform Installer looks like if you have successfully
installed this product.
![Windows Azure SDK for NodeJS](images/Azure06.png)
**Figure 06: Windows Azure SDK for NodeJS**
### Php Install {#phpInstall}
Installing PHP for Azure is a bit different. The install is on CodePlex,
and all you will need to download is a zip file:
[http://phpazure.codeplex.com/](http://phpazure.codeplex.com/)
There are set of five directories in the zip file:
![Azure install for PHP](images/Azure07.png)
You should copy this 22 MB of files to some well known location on your
hard drive. As always, make sure there are no spaces in the path to your
folder. It is all right if you folder itself has a complex name with no
spaces, such as:
**[J:\\Src\\PHPAzure-4.1.0](file:///J:\Src\PHPAzure-4.1.0)**. You will
notice that this SDK is made by a company called RealdolMan, and
sponsored by Microsoft. As a result, I suppose it has only semi-official
status, but so far I have found it be quite professional.
### Python Install {#pythonInstall}
The [Python install for
Azure](http://blog.smarx.com/posts/tutorial-running-a-python-web-application-in-windows-azure),
on the other hand, is without official sanction from Microsoft.
Nevertheless, it does not really differ so greatly in its fundamentals
from the PHP install. The simplest way to install the product is to be
sure you have a [GitHub client](http://git-scm.com/downloads) of some
kind, links are available for that client at the bottom of this
document. Then you can paste in the following URL and pull down the
files:
- **git://github.com/smarx/pythonrole**
- **https://github.com/smarx/pythonrole.git**
Otherwise, you can just go here, and download the zip file:
[https://github.com/smarx/pythonrole](https://github.com/smarx/pythonrole)
![Azure Install for Python from GitHub using GitGui](images/Azure08.png)
For Python, you will also want to be sure you have installed
easy-install, pip, flask, virtualenv and rocket. You should also install
the Python tools for Windows Azure Storage
- [](http://www.elvenwa/charlie/development/web/Python/install.html#easyins/charlie/development/web/Python/install.html#easyinstall%20