Before starting this tutorial you need to have the prerequisite software for using Microsoft Azure within Visual COBOL installed. See Additional Software Requirements for details.
To complete this tutorial, you must have the Azure Tools feature installed in Visual COBOL. 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:
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 Microsoft Azure storage emulator, which is the local development environment. The 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: