Windows Services in Windows azure
NickName:carlos Ask DateTime:2012-10-27T00:54:01

Windows Services in Windows azure

Does windows Azure supports windows Services ?, ...

I develop an application that has among its components a windows service that every hour sends an email with information.

Is this supported in Windows Azure?,

Thanks!!

Copyright Notice:Content Author:「carlos」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/13091159/windows-services-in-windows-azure

Answers
Alan Smith 2012-10-27T06:15:08

You might find the worker role is a better fit for running a process every hour. If you have the code for the WIndows Service it should not be hard to impleemnt it in a worker role.\n\nYou will, however, have to use a 3rd party service to send the email, as this is not supported in Azure.\n\nRegards,\n\nAlan",


dunnry 2012-10-26T18:10:37

Yes, you can do this*. In order to install a Windows Service in a PaaS worker role (or web role), you will need to create a startup script that installs the service on boot (and checks to see if already installed on subsequent boots).\n\nIf you are using IaaS VMs, then the installation is straightforward - just do as you do today.\n\n*Windows Azure Websites is a shared model, so installing services is not supported there.",


Yossi Dahan 2012-10-27T07:54:34

To combine both Alan Smith's and dunnry's answers, both are correct - \n\nYou can install a windows services on a PaaS role using a startup script (other than web sites).\nIf you're using a Virtual Machine you just install the service on the VM\n\nBut Alan is completely correct that the best route forward in most cases is migrating the code to a worker role which is usually quite straight forward, would work best and would be easier to maintain.\n\nHaving said all of that - sending emails from within Azure is not necessarily a good idea as many mail servers black list the ips (turns out Azure is a great platform for spammers)",


Sandrino Di Mattia 2012-10-28T19:25:41

I want to make an extra addition to Alan and Yossi's answers. It's important to know the why, because simply installing the Windows Service shouldn't be a problem. \n\nBut if you do this you'll be missing out on something very important. If you run all of your code in the actual Worker Role process you'll get the monitoring for free. This means, if your process crashes for whatever reason, Windows Azure will restart the instance to make sure the process gets back online.\n\nNow if you simply go and install a Windows Service through a startup script you won't be able to take advantage from this automated monitoring. You'll need to make sure you have some kind of recovery (this could be a setting on the Windows Service or a different process). But it's simply too much work for something you could get for free.",


More about “Windows Services in Windows azure” related questions

Windows Services in Windows azure

Does windows Azure supports windows Services ?, ... I develop an application that has among its components a windows service that every hour sends an email with information. Is this supported in

Show Detail

How to host windows services to windows azure

How to host windows services to windows azure. I found many solution related to Worker role but Worker role have many setup like Create Worker Role Solution. Create Cloud Service to run script. Is

Show Detail

Azure Mobile Services: migrate to non-Azure Windows Server

I am planning to use Windows Azure Mobile Services for a new project. As far as I am concerned, Mobile Services are closely tied to Windows Azure. So far, I'm pretty happy with Windows Azure. What...

Show Detail

How does Windows Azure Mobile Services differ from Azure Cloud Services?

I need to connect to a middle tier (think Azure) between both my Windows store app and WP8 app. Windows Azure Mobile Services has been proffered as a/the solution. But am I reading too much into ...

Show Detail

Windows Services on Azure Virtual Machines with Availability Sets

I have few (around 10) Windows Services on my existing environment. We are planning to migrate to Azure with the following. Host our database on Azure SQL Database. Install all the 10 Windows Serv...

Show Detail

Windows Azure Mobile Services and Compression

Does Windows Azure Mobile Services supports GZIP Compression?

Show Detail

Converting windows services to Azure Jobs

I would like to convert my windows services to Azure web jobs. Currently my windows service does the following tasks It connects to the database and fetches data (using entity framework) It create...

Show Detail

Windows Services into Azure WorkerRoles

What is established best practice in porting a Windows Service to Azure? Should it be changed into a Worker Role or moved into a VM Role? Are there other options? Assume that my services write to

Show Detail

Monodroid with Windows Azure Mobile Services

I want to add authentication using Windows Azure Mobile Services to a MonoForAndroid app. Microsoft has code samples to do this for Windows 8, iOS, and Windows Phone 8. Xamarin has announced suppo...

Show Detail

How to Authenticate Windows Phone 8.1 JavaScript app with Windows Azure Mobile Services

I have a Windows Phone 8.1 JavaScript Universal App that I want to authenticate with my Azure Mobile Services account. I can successfully make authenticated calls to my service in the Windows Store...

Show Detail