Azure Cloud Service - Compute Emulator

This article is a part of a series of articles related to one of the Azure Compute options “Cloud Services”.

 

In one of our previous articles, Azure HelloWorld Cloud Service, we learned how Visual Studio creates Microsoft Azure Debugging Environment. This environment consists of multiple emulators for executing the roles of the Azure Cloud Services. In this article, we will learn how Compute Emulator could be used for Azure Cloud Service applications.

The Azure Compute Emulator enables us to test and debug the Azure Cloud Services in our local environment without deploying the Cloud Service to Azure.

As soon as you run the Web Roles (or Worker Roles), one of the components of the Azure SDK gets triggered. In order to view this, you need to expand the arrow at the right corner of your Windows Machine, as shown below.

side corner

Clicking on this small arrow mark, you can see another icon related to the Emulator Express.

Express

Right click on the Emulator Express icon to view a contextual menu, as shown below.

Emulator Express

Clicking on the “Show Compute Emulator UI” opens the “Compute Emulator”.

Show Compute Emulator UI

Clicking on the Service details, it displays the End Point details, like URL and Port numbers.

Service details

In order to view the life cycle events of the roles, click on any of the roles available in Cloud Service.

cycle events

In this example, I have just two roles. You might have multiple roles in your application. You need to click on the role which you are interested in. I clicked on the Web Role at left pane under “Service Deployment”. In the right pane, I got a console like box.

Clicking on the information icon, displaying at the top right corner of console box, will maximize the box, as shown below.

console

In the above screen, notice the name of the instance in which your Cloud service is running along with the life cycle events of the role. We will learn more about Compute Emulator in our upcoming articles.

Hope you enjoyed reading the article. Your feedback is appreciated.

Up Next
    Ebook Download
    View all
    Learn
    View all