Rich Rousseau
Rich Rousseau

Reputation: 776

Can I run a Node/ExpressJS application on Azure App Service or do I have to use Azure Cloud Service?

I have found examples of running a simple Node only application under an Azure App Service. But for ExpressJS the examples I've found have all used an Azure Cloud Service. New to Azure and just trying to figure out what I should be using.

Simple NodeJS to Azure App Service https://azure.microsoft.com/en-us/documentation/articles/web-sites-nodejs-develop-deploy-mac/

Simple ExpressJS to Azure Cloud Service https://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-develop-deploy-express-app/

Upvotes: 3

Views: 2952

Answers (1)

David Makogon
David Makogon

Reputation: 71118

There should be no issue running an ExpressJS app in an app service. You just need to properly install your node packages during local dev, then push your app + related packages to your web app (via git, dropbox, or any of the other version control providers).

There are specific differences between web apps and cloud services (web/worker role instances) which I call out in a different answer (here), such as web apps being restricted to just ports 80 and 443.

You'll also need to properly manage the version of node your app is using, as it might not match up with the default nodejs version installed in Web Apps.

Upvotes: 3

Related Questions