Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is equivalent of a windows service on azure?

Tags:

azure

what is the way to have an always running process on azure? on windows it is windows service, but do i have to get a virtual machine just to have a single running process? I have looked at various compute options but none of them seems to match what a windows service does. Is there a different way to achieve what a windows service does on azure?

like image 639
jimjim Avatar asked Mar 16 '16 03:03

jimjim


People also ask

What is the equivalent of a Windows service in Azure?

Azure function is a good candidate for migrating windows services into something cloud based. Azure function can be triggered by a timer and so like a windows service can be scheduled at a certain time of the day for example.

Does Azure replace Windows Server?

Azure is a cloud platform that provides users with the flexibility and control to create, deploy, and manage applications. Azure replaces windows server as the leading platform for hosting websites and applications.

Can you run Windows Server on Azure?

Azure literally runs on Windows Server, so it's easy to move workloads to Microsoft's cloud platform and use existing skills, familiar tools, and established procedures. You'll still have one place to go to for support, and even your Windows Server licenses can be leveraged in Azure.

Which services are provided by Window Azure operating system?

In addition, Azure offers four different forms of cloud computing: infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS) and serverless functions.


1 Answers

There is no specific way to run your code in Azure. You have lots of choices, and which you choose is really up to you (and a matter of opinion). But, objectively speaking:

  • Install your service as you always have, in a Windows Server VM
  • Run your code, without the Windows Service wrapper, in a VM (either Windows or Linux, depending on language)
  • Pull your core code out of the service, and run it within a web/worker role (cloud service).
  • Run your code in a WebJob.
  • Run your code in a Web App (you'd need to add some way to get to it, like a REST API sitting in front of it)

I see that @Neil suggested Service Fabric in his answer. That works too, except you'll need to learn about Service Fabric in general, since it works a bit differently.

like image 136
David Makogon Avatar answered Sep 18 '22 15:09

David Makogon