Can we debug the Windows Azure Deployed Solution ? (Web Role & Worker Role)

Category: azure troubleshooting


shriji1111 on Fri, 19 Apr 2013 11:01:15

Hi Team,

I have publish my first Windows Azure Project (Web Role & Worker Role). Web Role is working fine (after a lot changes) now Worker role still not working.

I have checked the Queue (Storage Queue) It has the message which i drop from Web Role but worker role is not getting processed it even after a 15 min. I am sure it has some error over there. but how would i debug that ?

In my local, It all working fine. So, Do we have any facility of debugging the Deployed Application ?

Regards, Brijesh Shah


saransh77 on Fri, 19 Apr 2013 13:47:51

In Compute emulator, point to storage queue where this message is and debug the worker role...this may give you some inkling into the problem. 

Other option is to write to application log, event log, or storage to identify the issue...or use remote desktop to connect to the VM instance and see the logs to identify if there is any issue logged by default...but easiest way to start with compute emulator.

shriji1111 on Mon, 22 Apr 2013 12:08:27

Hi Saransh,

Can you explain more about Compute Emulator ? You mean to say Log the message and by that find out the issue or such stage where the code is executing ?

Moreover regarding VM, Can you tell me is that included in 90-day free pack ?

saransh77 on Mon, 22 Apr 2013 18:53:23

Windows Azure provides Compute and Storage emulator to allow you to develop and test your code locally before pushing it to Azure. They simulate the Azure environment. Read more...,d.bmk

As for the question of VM...There are VM roles (IaaS stuff) which you can think of in similar terms as provisioning a VM in on-premise environment. But, in cloud services (worker and web roles), the deployment happens in VM instances...these are different from VM roles and is of interest here. They are completely managed by Azure. Any web or worker roles deployment starts with provisioning of VM instance(s) as configured in your csdef file....followed by deployment of code on the VM instance. You can remote to VM instances and check out deployments, event logs, etc. if required. So, yes VM instances are implicit for any deployment of web and worker role and are very much part of 90-day free pack.

vishalishere on Mon, 22 Apr 2013 22:54:14

just a quick update,

The Windows Azure VM Role preview is being retired on May 15. Please transition to Windows Azure Virtual Machines, and delete your VM Role preview instances as soon as possible.