Many of you may not even know this, but as part of the Windows Azure Tools for Microsoft Visual Studio, we ship a Role template called “CGI Web Role”.
Today, it’s a little hard to find (yes, I’m foreshadowing that this is about to change!) as you have to create a Cloud Service project first, then add/replace the Web Role with a CGI Web Role.
For example you could create a Blank Cloud Service project:
In Solution Explorer, right click on the Roles node in the Cloud Service project Add | New Web Role Project…
Select CGI Web Role:
Which adds an ASP.NET Web Application project tailored to be the configuration and files conduit for a FastCGI Application to your Cloud Service:
What is the purpose of the CGI Web Role?
Even though Visual Studio doesn’t support languages like PHP, there are reasons for you to be interested in using Visual Studio when building a FastCGI application that runs on Windows Azure:
Not to mention that Visual Studio really has a first class source editor and a lot of other features you’ll be able to make use of.
(Please see the Windows Azure SDK documentation and the FastCGI sample for more information on hosting a FastCGI application on Windows Azure.)