Windows Service to the Cloud

Category: azure development


Thomas Lee3 on Thu, 06 Feb 2020 12:19:09

Hi, I have developed a couple of .NET windows services. These services are going to be migrated to the cloud. The services are worker related and create multiple parallel tasks to interact with Microsoft Graph / Exchange/rest services, not to mention MSSQL databases. We want to move the existing windows services to the cloud, and eventually convert them to hosted core services. My questions are:

  1. I have read articles about using WCF, which we dropped several years ago because we thought it was dead. What is the best way to get our existing services to the cloud? We thought about IIS, but it looks like, from everything I have read, WCF is recommended. Does anybody have any suggestions?
  2. I have never used a core hosted service, is this a good choice to replace our Windows Services? Is there a good tutorial that explains how to move a windows service to a core hosted service?

I am looking for a little feedback before we map out our development path.




jakaruna-MSFT on Fri, 07 Feb 2020 12:48:17


Not many azure service supports direct deployment of windows services.

One option close to your ask is cloud service worker roles.

Once you deploy them to cloud service, you need some way to access the output of those applications . For that a rest api based server will be helpful.

go through the document of the cloud service and check if that solves your problem.

But it will be better if you convert your console apps to rest api based apps.  Then you have lot of deployment, management and control options.

jakaruna-MSFT on Mon, 10 Feb 2020 10:35:54

Hi Thomas Lee3,

You can also consider deploying windows services to service fabric.

But deploying 2 to 3 services will be a overkill.  Service fabric production environment recommends to have 5 master nodes.  So if you have more services, Then go ahead with service fabric

Thomas Lee3 on Mon, 10 Feb 2020 13:05:30

Thank you, that seems like it might work well with our environment