Learn how to choose between Azure App Service, Azure Cloud Services, and Virtual Machines for hosting your app in the Azure Cloud
When I decided that I wanted to host a web application in the Azure cloud, the opportunity to explore the resources offered by a leading public cloud provider was exciting. How would Microsoft – with their deep experience and mature ecosystem – handle features like high availability, smart load balancing, and auto scaling?
It turns out that just choosing the right hosting service from Azure’s rich collection can be something of a challenge. My excitement quickly gave way to a little confusion and plenty of caution.
The right choice, of course, will depend on the unique needs of a project. We’ll explore some solutions from the MS Azure universe and try to highlight where they’re most likely to be useful.
Let’s focus on three services:
Azure App Service (which, until this past April, was called Azure Websites) is a managed platform. This means that Azure takes care of application deployment and management, while the developer only needs to concentrate on app development. Azure App Service supports applications defined by Azure as “Web Apps”, “Mobile Apps”, “API Apps”, and “Logic Apps”.
Azure Cloud Services is a platform that allows developers access to the underlying virtual machines and still manages the application container and deployment automatically. This offers a much more flexible solution than Azure App Service.
Virtual Machines give you full control over application management and deployment. For projects that may require substantial modifications to the technology stack in the future, or for people worried about being locked into a single vendor, the extra work required to launch and maintain Virtual Machines might be worth it.
Azure App Service
So, following the helpful Azure documentation, I successfully deployed my app using the App Service. Things went very smoothly… until I wanted to verify my server configurations and analyze some performance issues. It seems this isn’t possible, since App Service is a managed platform that handles deployment for you. There is no simple way to gain access to the app configuration files once it’s running.
In my case, this wasn’t ideal. I need remote access to the underlying web server, so that I can personally configure server tasks.
To fully understand how Azure App Service works, take a look at Cloud Academy’s Getting Started with Azure App Service course.
Azure Cloud Services
With that in mind, I turned my attention to Azure Cloud Services, which offers a slightly different balance of features. With Cloud Services, you can still enjoy a partially managed platform while, at the same time, maintaining some control over the underlying web servers. This documentation will guide you through deploying your web application using Cloud Services.
Learn more about Azure Cloud Services, in Cloud Academy’s Overview course of Azure Services.
What about Virtual Machines? I would say that, if you must have full access to configuration assets and you’re willing to accept the responsibility for managing your whole operation, this might be your best option.
Let’s spend a bit more time weighing these services against each other. As we said, if you are able to live without control over your webservers, then App Service might be for you. If it is, you’ll be able to enjoy some pretty impressive features, including:
- Instant deployment.
- Vertical scaling, without having to redeploy.
- Support for multiple deployments (like staging and production).
- Automatic OS upgrades for your infrastructure.
- Integration capability with Git.
- Integration capability with MySQL.
Azure App Service doesn’t completely lock you out, by the way. If you do sometimes need to run some background jobs along with your App Services deployment, Azure offers an integrated service called WebJobs. With WebJobs, users trigger custom programs or scripts on demand, continuously, or according to a set schedule. You can upload and run executable files built as cmd, bat, exe (.NET), ps1, sh, php, py, js, and jar with no trouble.
If Azure Cloud Services turns out to be a better fit, you’ll get many of the features of App Service, like support for multiple deployment, automatic OS upgrades, and seamless platform switching. But in addition, you’ll also get Remote Desktop (RDP) access to servers, custom MSI installations, the ability to define and execute start-up tasks, and to listen to Event Tracing for Windows (ETW) events.
And Virtual Machines? Here are some of the tasks that developers may still need to manually manage (Note that with some deployment solutions, these could also be automated):
- Configuration of the application server/framework in the VM.
- Integration with Azure services.
- OS patch management.
- Design and configure the application and infrastructure to handle fluctuating traffic.
- Seamless platform switching (including the ability to move between 32 bit and 64 bit environments).
- Security configuration.
- Identify and apply monitoring strategy for applications.
To learn more on how to create, configure, and monitor VMs in Azure Resource Manager, take a look at Cloud Academy’s Azure Resource Manager Virtual Machines course.
Finally, here’s a partial list of some fantastic common features supported by all three services:
- Access services like Service Bus, Storage, and SQL Database.
- Host a web or web services tier of a multi-tier architecture.
- Host a middle tier of a multi-tier architecture.
- Support for ASP.NET, classic ASP, Node.js, PHP, and Python.
- Scale out to multiple instances without having to redeploy.
- Support for SSL.
- Visual Studio integration.
- Remote Debugging.
- Network isolation with Azure Virtual Network.
- Integrated Endpoint monitoring.
This diagram illustrates the level of control associated with all three of the Azure services we’ve been discussing:
While all of these services will host applications well, each has its own flavor. Naturally, you should base your choice on your individual business requirements.
This is a first step. There’s obviously much more to learn about these three solutions – and other Azure offerings – and I hope to continue to share my experiences as I learn and grow along with you. I appreciate your comments and encourage you to contribute when the spirit moves you.
How to Unlock Complimentary Access to Cloud Academy
Are you looking to get trained or certified on AWS, Azure, Google Cloud Platform, DevOps, Cloud Security, Python, Java, or another technical skill? Then you'll want to mark your calendars for August 23, 2019. Starting Friday at 12:00 a.m. PDT (3:00 a.m. EDT), Cloud Academy is offering c...
Content Roadmap: AZ-500, ITIL 4, MS-100, Google Cloud Associate Engineer, and More
Last month, Cloud Academy joined forces with QA, the UK’s largest B2B skills provider, and it put us in an excellent position to solve a massive skills gap problem. As a result of this collaboration, you will see our training library grow with additions from QA’s massive catalog of 500+...
Disadvantages of Cloud Computing
If you want to deliver digital services of any kind, you’ll need to estimate all types of resources, not the least of which are CPU, memory, storage, and network connectivity. Which resources you choose for your delivery — cloud-based or local — is up to you. But you’ll definitely want...
How to Effectively Use Azure Management Groups, Subscriptions, and Resource Groups
When used individually, Azure Management Groups, Subscriptions, and Resource Groups are very powerful. But when used together, they can establish the entire organizational structure of Azure. In this article, I will explain Azure Resource Manager, Management Groups, Subscriptions an...
Cloud Academy’s Blog Digest: July 2019
July has been a very exciting month for us at Cloud Academy. On July 10, we officially joined forces with QA, the UK’s largest B2B skills provider (read the announcement). Over the coming weeks, you will see additions from QA’s massive catalog of 500+ certification courses and 1500+ ins...
Top 10 Things Cybersecurity Professionals Need to Know
There has been an increase in data breaches over the recent years. With almost 143 million Americans who have had their data compromised in data breaches. These breaches include all sorts of sensitive data, including financial information, election controversies, social security, just t...
Running Apache Spark on Azure Databricks
In this article, we’ll cover how to set up an Azure Databricks cluster and how to run queries in an interactive notebook. However, this article only scratches the surface of what you can do with Azure Databricks. If you would like to learn more, including how to create graphs, run sched...
Understanding the Core Azure Architectural Components
Microsoft Azure relies on a few key architectural components to provide redundancy and high availability. Core Azure architectural components include Azure regions, Azure Availability Zones, resource groups, and the Azure Resource Manager. In this article, we’ll discuss the basics ab...
How to Become a Microsoft Certified Azure Administrator
Microsoft Azure is one of the hottest cloud services on the planet, and it’s growing at a phenomenal rate. This rapid growth has created a huge demand for people who know how to administer and manage Azure implementations. To make it easier for employers to verify the skills of Azure...
Preparing for the Microsoft AZ-900 Exam
Microsoft has offered Azure certification exams for years, but until recently, they were all meant for technical IT professionals. Now non-technical professionals, such as salespeople and managers, can take the new AZ-900 exam to prove their understanding of Azure fundamentals. People w...
An Overview of Azure Storage (Part 2)
Archive Storage Archive Storage offers the lowest storage costs of all Azure storage. Its retrieval costs, however, are higher when compared to Hot and Cool storage. The archive tier of storage is designed for data that can tolerate several hours of latency when being retrieved. It’s a...
An Overview of Azure Storage (Part 1)
Welcome to part one of our series on Azure Storage. Stay tuned for the second part. An Overview of Azure Storage Microsoft Azure Storage is a cloud-based storage offering that provides multiple storage solutions for organizations. In addition to a massively scalable object store for ...