Before starting this tutorial you need to have the prerequisite software for using Microsoft Azure within Enterprise Developer installed. See Additional Software Requirements for details.
To complete this tutorial, you must have the Azure Tools feature installed in Enterprise Developer. If this feature is missing, see To install missing features from the IDE for installation instructions.
In this tutorial you create a "Hello COBOL World" cloud service which you then deploy and run under Microsoft Azure. The main steps are:
First, create a COBOL cloud solution using the COBOL cloud template in the IDE, and choose a web role only, as follows:
The newly-created solution contains two projects: one for the cloud service and one for the web role. The service project contains the service configuration and definition files, and also an association with the web role. You can see all this in Solution Explorer.
For this simple service just add the "Hello COBOL World" text, as follows:
Now you can build the solution and start testing it locally in the compute emulator, as follows:
This starts the compute emulator, which is the local development environment. The compute emulator might take some time to start up the first time you run the application.
Your application then runs and, if appropriate, the web browser opens and displays your web page.
In the compute emulator, monitor your application while it is running and start and stop it as necessary. You can see your trace messages in the compute emulator and verify the application's basic functionality.
Before you deploy your service to the cloud, you must create a Microsoft Azure account. In addition, before you deploy directly from Visual Studio, you need to create the following items that enable Visual Studio to authenticate your credentials with Microsoft Azure:
You create your account and the above items through the Microsoft Azure Management Portal.
To publish and deploy to Microsoft Azure: