Deploy and host your JavaScript apps on Azure
Hosting options and deployment scenarios include several services and tools for Azure. Azure has many options for hosting and many tools to help you move your app from a local or cloud repository to Azure.
Choose a recommended Azure host provider
Use the following table to select a hosting service for most common app needs.
For a complete overview of different hosting options, see Decision tree for Azure compute services and the Core Cloud Services - Azure compute options module on Microsoft Learn.
| Service | App type supported | Suggested for |
|---|---|---|
| *App service - recommended | Client, Server, Client/Server, API, Server-render | Host your app from code or a container. This allows you to fully configure and manage the web server without needing to manage the underlying environment. Quickstart: Create a Node.js web app in Azure |
| Static Web apps | Static front-end, Pre-render, JAM-stack, Static front end with serverless APIs | Deploy and dynamically scale your static client app and serverless APIs. Quickstart: Building your first static site with Azure Static Web Apps |
| Functions | Serverless APIs, triggered background processes | Host your serverless API endpoints. Azure provides many templates known as triggers to bootstrap common scenarios. Quickstart: Create a JavaScript function in Azure using Visual Studio Code |
| Azure Web PubSub (Preview) | Sockets, real-time message. | Build real-time messaging web applications using WebSockets and the publish-subscribe pattern. Quickstart: Publish messages using the service SDK for the Azure Web PubSub instance |
Host web apps with more control and flexibility
The following choices give you more control of your application environment.
| Service | Suggested for |
|---|---|
| Virtual Machines (VMs) | Full control of a Windows or Linux VM. Find an endorsed Linux Distribution or learn how to find Linux VM images in the Azure Marketplace. |
| Container Instances | Quickly set up a single container. |
| Multiple apps | Use an App Service plan running multiple app services. |
Ultimate control with microservices on Azure
For enterprise scale systems, use one of the following microservice platforms.
| Service | Suggested for |
|---|---|
| Kubernetes Service | Deploy a production ready Kubernetes cluster in Azure. |
| Service Fabric | A distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers |
Alternative web app hosting choices on Azure
These choices are tailored to specific use cases.
| Service | Suggested for |
|---|---|
| Storage | Azure Storage can also host a static web app. This is helpful if you need tight integration between robust Storage and your client application. |
| Content Delivery Network (CDN) | Deliver pre-rendered websites. Cache static objects loaded from Azure Blob storage, a web application, or any publicly accessible web server, by using the closest point of presence (POP) server. Azure CDN can also accelerate dynamic content, which cannot be cached, by using various network and routing optimizations. |