If the role (the Web / Worker / VM role) has several instances, this means that you received the same account for the Windows Server virtual machines (the version depends on the version of the guest OS that you configured). Each virtual machine will work with the same code in your application (for example, an ASP.NET web application), all requests for this role will be load balanced, and one of the virtual machines will break the request based on a circular policy.
So, if your cron job needs to be run only once, as Guarav said, you need a locking mechanism that allows one of your role instances to run it.
Alex feng
source share