Azure Web Sites, Cloud Services and Virtual Machines comparison

This post is completely consumed from Microsoft Azure site . . . But i found this information really useful and would like to archive on my blog as well.

Azure offers several ways to host your web applications, such as Azure Web SitesCloud Services, and Virtual Machines. After looking at these various options, you might be unsure which one best fits your needs, or you might be unclear about concepts such as IaaS vs PaaS. This article helps you understand your options and helps you make the right choice for your web scenario. Although all three options allow you to run highly scalable web applications in Azure, there are differences which can help guide your decision.
In many situations, Azure Web Sites is the best option. It provides simple and flexible options for deployment and management, and it is capable of hosting high-volume web sites. You can quickly create a new web site with popular software, such as WordPress, from the Web Application Gallery, or you can move an existing web site to Azure Web Sites. Using the Azure WebJobs SDK (currently in preview) you can also add background job processing.
You also have the option to host web applications on Azure Cloud Services or Azure Virtual Machines. These options are good choices when your web tier requires the additional level of control and customization that they provide; however, this increased control comes at a cost of increased complexity in application creation, management, and deployment. The following diagram illustrates the trade-offs among the three options.

Web Sites are easier to set up, manage, and monitor, but you have fewer configuration options. The key point is that when you do not have a compelling reason to place your web front-end on Cloud Services or Virtual Machines, use Azure Web Sites. The remainder of this document provides the information needed to make an informed decision. This includes:


I'm a small business owner, and I need an inexpensive way to host my site but with future growth in mind.

Azure Web Sites (WAWS) is a great solution for this scenario, because you can start using it for free and then add more capabilities when you need them. For example, each free web site comes with a domain provided by Azure (your_company.azurewebsites.net). When you’re ready to start using your own domain, you can add this for as low as $9.80 a month (as of 1/2014). There are many other services and scaling options that allow the site to evolve with increased user demand. With Azure Web Sites, you can:
  • Begin with the free tier and then scale up as needed.
  • Use the Application Gallery to quickly setup popular web applications, such as WordPress.
  • Add additional Azure services and features to your application as needed.
  • Secure your web site with HTTPS using the certificate provided with your your_company.azurewebsites.net domain name.

I'm a web or graphic designer, and I want to design and build web sites for my customers

For web developers, Azure Web Sites gives you what you need to create sophisticated web applications. Web Sites offers tight integration with tools such as Visual Studio and SQL database. With Web Sites, developers can:
  • Use command-line tools for automated tasks.
  • Work with popular languages such as .NetPHPNode.js, and Python.
  • Select three different scaling levels for scaling up to very high capacities.
  • Integrate with other Azure services, such as SQL DatabaseService Bus and Storage, or partner offerings from the Azure Store, such as MySQL and MongoDB.
  • Integrate with tools, such as Visual Studio, Git, WebMatrix, WebDeploy, TFS, and FTP.

I'm migrating my multi-tier application with a web front-end to the Cloud

If you’re running a multi-tier application, such as a web server that talks to a database server to store and retrieve website data, you have several options for in Azure. These architectural options include Web Sites, Cloud Services, and Virtual Machines. First,Web Sites is a good option for the web tier of your solution and can be used with Azure SQL Database to create a two-tier architecture. Web Sites also allows you to run background or long running processes using the Azure WebJobs SDK preview. If you need more complex architecture or more flexible scaling options, Cloud Services or Virtual Machines are a better choice.
Cloud Services enables you to:
  • Host web, middle-tier, and backend services on scalable web and worker roles.
  • Host only the middle-tier and backend services on worker roles, keeping the front-end on Azure Web Sites.
  • Scale frontend and backend services independently.
Virtual Machines enables you to:
  • More easily migrate highly customized environments as a virtual machine image.
  • Run software or services that cannot be configured on Web Sites or Cloud Services.

My application depends on highly customized Windows or Linux environments

If your application requires complex installation or configuration of software and the operating system, Virtual Machines is probably the best solution. With Virtual Machines, you can:
  • Use the Virtual Machine gallery to start with an operating system, such as Windows or Linux, and then customize it for your application requirements.
  • Create and upload a custom image of an existing on-premises server to run on a virtual machine in Azure.

My site uses open source software, and I want to host it in Azure

All three options allow you to host open source languages and frameworks. Cloud Services requires you to use startup tasks to install and configure any required open source software that runs on Windows. With Virtual Machines, you install and configure the software on the machine image, which can be Windows or Linux-based. If your open source framework is support on Web Sites, this provides a simpler way to host these types of applications as Web Sites can be automatically configured with the languages and frameworks needed by your application. Web Sites enables you to:
  • Use many popular open source languages, such as .NETPHPNode.js, and Python.
  • Setup WordPress, Drupal, Umbraco, DNN, and many other third-party web applications.
  • Migrate an existing application or create a new one from the Application Gallery.

I have a line-of-business application that needs to connect to the corporate network

If you want to create a line-of-business application, your web site might require direct access to services or data on the corporate network. This is possible on Web SitesCloud Services, and Virtual Machines. There are differences in the approach you take, which include the following:
  • Web Sites can securely connect to on-premises resources through the use of Service Bus Relay. This allows services on the corporate network to perform tasks on behalf of the web application without moving everything to the Cloud or setting up a virtual network.
  • Cloud Services and Virtual Machines can take advantage of Virtual Network. In effect, Virtual Network allows machines running in Azure to connect to an on-premises network. Azure then becomes an extension of your corporate datacenter.

I want to host a REST API or web service for mobile clients

HTTP-based web services allows you to support a wide variety of clients, including mobile clients. Frameworks like the ASP.NET Web API integrate with Visual Studio to make it easier to create and consume REST services. These services are exposed from a web endpoint, so it is possible to use any web hosting technique on Azure to support this scenario. However, Web Sites is a great choice for hosting REST APIs. With Web Sites, you can:
  • Quickly create a Web Site to host the HTTP web service in one of Azure’s globally distributed datacenters.
  • Migrate existing services or create new ones, potentially taking advantage of the ASP.NET Web API in Visual Studio.
  • Achieve SLA for availability with a single instance, or scale out to multiple dedicated machines.
  • Use the published site to provide REST APIs to any HTTP clients, including mobile clients.

Service Summaries

Azure Web Sites enables you to build highly scalable web sites quickly on Azure. You can use the Azure Portal or the command-line tools to set up a web site with popular languages such as .NET, PHP, Node.js, and Python. Supported frameworks are already deployed and do not require more installation steps. The Azure Web Sites gallery contains many third-party applications, such as Drupal and WordPress as well as development frameworks such as Django and CakePHP. After creating a site, you can either migrate an existing web site or build a completely new web site. Web Sites eliminates the need to manage the physical hardware, and it also provides several scaling options. You can move from a shared multi-tenant model to a standard mode where dedicated machines service incoming traffic. Web Sites also enable you to integrate with other Azure services, such as SQL Database, Service Bus, and Storage. Using the Azure WebJobs SDK preview, you can add background processing. In summary, Azure Web Sites make it easier to focus on application development by supporting a wide range of languages, open source applications, and deployment methodologies (FTP, Git, Web Deploy, or TFS). If you don’t have specialized requirements that require Cloud Services or Virtual Machines, an Azure Web Site is most likely the best choice.
Cloud Services enable you to create highly-available, scalable web applications in a rich Platform as a Service (PaaS) environment. Unlike Web Sites, a cloud service is created first in a development environment, such as Visual Studio, before being deployed to Azure. Frameworks, such as PHP, require custom deployment steps or tasks that install the framework on role startup. The main advantage of Cloud Services is the ability to support more complex multitier architectures. A single cloud service could consist of a frontend web role and one or more worker roles. Each tier can be scaled independently. There is also an increased level of control over your web application infrastructure. For example, you can remote desktop onto the machines that are running the role instances. You can also script more advanced IIS and machine configuration changes that run at role startup, including tasks that require administrator control.
Virtual Machines enable you to run web applications on virtual machines in Azure. This capability is also known as Infrastructure as a Service (IaaS). Create new Windows Server or Linux machines through the portal, or upload an existing virtual machine image. Virtual Machines give you the most control over the operating system, configuration, and installed software and services. This is a good option for quickly migrating complex on-premises web applications to the cloud, because the machines can be moved as a whole. With Virtual Networks, you can also connect these virtual machines to on-premises corporate networks. As with Cloud Services, you have remote access to these machines and the ability to perform configuration changes at the administrative level. However, unlike Web Sites and Cloud Services, you must manage your virtual machine images and application architecture completely at the infrastructure level. One basic example is that you have to apply your own patches to the operating system.

Feature Comparison

The following table compares the capabilities of Web Sites, Cloud Services, and Virtual Machines to help you make the best choice. Boxes with an asterisk are explained more in the notes following the table.
Access to services like Service Bus, Storage, SQL Database
Host web or web services tier of a multi-tier architecture
Host middle tier of a multi-tier architecture
Integrated MySQL-as-a-service support
Support for ASP.NET, classic ASP, Node.js, PHP, Python
Scale out to multiple instances without redeploy
Support for SSL
Visual Studio integration
Remote Debugging
Deploy code with TFS
Deploy code with GIT, FTP
Deploy code with Web Deploy
WebMatrix support
Near-instant deployment
Instances share content and configuration
Scale up to larger machines without redeploy
Multiple deployment environments (production and staging)
Network isolation with Azure Virtual Network
Support for Azure Traffic Manager
Remote desktop access to servers
Ability to define/execute start-up tasks
Automatic OS update management
Integrated Endpoint Monitoring
Seamless platform switching (32bit/64bit)
1 Web or worker roles can integrate MySQL-as-a-service through ClearDB's offerings, but not as part of the Management Portal workflow.
2 Although Virtual Machines can scale out to multiple instances, the services running on these machines must be written to handle this scale-out. An additional load balancer must be configured to route requests across the machines. Finally, an Affinity Group should be created for all machines participating in the same role to protect them from simultaneous restarts from maintenance or hardware failures.
3 For Web Sites, SSL for custom domain names is only supported for standard mode. For more information on using SSL with Web Sites, see Configuring an SSL certificate for an Azure Web Site.
4 Web Deploy is supported for cloud services when deploying to single-instance roles. However, production roles require multiple instances to meet the Azure SLA. Therefore, Web Deploy is not a suitable deployment mechanism for cloud services in production.


  1. The Virtual Machine Articles has very useful for VMware workstation, it's for workstation can be accessed with the cloud services, web services for virtual machine and that to be accessed by vmware workstation.

    VMware Training in Chennai

  2. This blog is nice and very informative. I like this blog. Please keep it up.

  3. This blog is nice and very informative. I like this blog. Please keep it up.

  4. • Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingAzure Online Training

  5. Thanks for sharing this useful information, I really appriciate your work, keep sharing such an amazing content in future. Azure Cloud Services Australia