Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Service to Azure?

I've written a Windows Service in C# that does a whole bunch of background admin tasks on the database. Now my customer wants to migrate the whole shebang to Azure. I know next to nothing about Azure, and my customer says you can't run a Windows Service on Azure. I've googled for this topic and come out with a few very specific case studies of what somebody did to move their Windows Service to Azure, assuming a fairly high level of understanding of how Azure works, but no general articles about whether or not Windows Services can run under Azure, or what to do to adapt them.

I would really like to see a clear answer and explanation to the first question (can you run a Windows Service under Azure?), and if the answer is no, I'd love to find a step-by-step guide for converting a Windows Service to something Azure-compatible.

Thanks!

like image 925
Shaul Behr Avatar asked Oct 17 '11 13:10

Shaul Behr


People also ask

Can you run a Windows Service in Azure?

It IS now indeed possible to run a windows service in Windows Azure using the VM Role. However, a more ideal way to run a service in Windows Azure is to set it up as a Service Role and NOT as a Windows Service.

Can Azure monitor a Windows services?

One of the best options for monitoring of services across Windows and Linux leverages off the Change Tracking solution in Azure Automation. The solution can track changes on both Windows and Linux. On Windows, it supports tracking changes on files, registry keys, services, and installed software.

How do I connect to Azure from Windows Server?

Connect to the virtual machineGo to the Azure portal to connect to a VM. Search for and select Virtual machines. Select the virtual machine from the list. At the beginning of the virtual machine page, select Connect.


2 Answers

Yes you can do that - for a simple walkthrough see http://blogs.msdn.com/b/mwasham/archive/2011/03/30/migrating-a-windows-service-to-windows-azure.aspx

Other links with relevant information:

  • Getting a Service to Run Inside of an Azure Worker Role
  • http://www.codeproject.com/KB/azure/WCFWorkerRole.aspx
like image 200
Yahia Avatar answered Sep 23 '22 00:09

Yahia


You can run whatever you want, including a Windows Service.

I think you'd be happier converting to a WorkerRole, though, which should be very straightforward.

like image 21
user94559 Avatar answered Sep 25 '22 00:09

user94559