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.
New Content: AWS Data Analytics – Specialty Certification, Azure AI-900 Certification, Plus New Learning Paths, Courses, Labs, and More
This month our Content Team released two big certification Learning Paths: the AWS Certified Data Analytics - Speciality, and the Azure AI Fundamentals AI-900. In total, we released four new Learning Paths, 16 courses, 24 assessments, and 11 labs. New content on Cloud Academy At any ...
New Content: Azure DP-100 Certification, Alibaba Cloud Certified Associate Prep, 13 Security Labs, and Much More
This past month our Content Team served up a heaping spoonful of new and updated content. Not only did our experts release the brand new Azure DP-100 Certification Learning Path, but they also created 18 new hands-on labs — and so much more! New content on Cloud Academy At any time, y...
Constant Content: Cloud Academy’s Q3 2020 Roadmap
Hello — Andy Larkin here, VP of Content at Cloud Academy. I am pleased to release our roadmap for the next three months of 2020 — August through October. Let me walk you through the content we have planned for you and how this content can help you gain skills, get certified, and...
New Content: Alibaba, Azure AZ-303 and AZ-304, Site Reliability Engineering (SRE) Foundation, Python 3 Programming, 16 Hands-on Labs, and Much More
This month our Content Team did an amazing job at publishing and updating a ton of new content. Not only did our experts release the brand new AZ-303 and AZ-304 Certification Learning Paths, but they also created 16 new hands-on labs — and so much more! New content on Cloud Academy At...
Blog Digest: Which Certifications Should I Get?, The 12 Microsoft Azure Certifications, 6 Ways to Prevent a Data Breach, and More
This month, we were excited to announce that Cloud Academy was recognized in the G2 Summer 2020 reports! These reports highlight the top-rated solutions in the industry, as chosen by the source that matters most: customers. We're grateful to have been nominated as a High Performer in se...
Which Certifications Should I Get?
The old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and companies. With all that in mind, the s...
New Content: AWS, Azure, Typescript, Java, Docker, 13 New Labs, and Much More
This month, our Content Team released a whopping 13 new labs in real cloud environments! If you haven't tried out our labs, you might not understand why we think that number is so impressive. Our labs are not “simulated” experiences — they are real cloud environments using accounts on A...
Kickstart Your Tech Training With a Free Week on Cloud Academy
Are you looking to make a jump in your technical career? Want to get trained or certified on AWS, Azure, Google Cloud Platform, DevOps, Kubernetes, Python, or another in-demand skill? Then you'll want to mark your calendar. Starting Monday, June 22 at 12:00 a.m. PDT (3:00 a.m. EDT), ...
Azure Certifications: Our Experts Explain Which Is Best for You
How do you choose an Azure certification? It can be hard to get started when choosing an Azure certification. There are so many to sift through, so many interesting options, and it requires a time commitment to just understand the cert landscape. To help guide you through the select...
New Content: AZ-500 and AZ-400 Updates, 3 Google Professional Exam Preps, Practical ML Learning Path, C# Programming, and More
This month, our Content Team released tons of new content and labs in real cloud environments. Not only that, but we introduced our very first highly interactive "Office Hours" webinar. This webinar, Acing the AWS Solutions Architect Associate Certification, started with a quick overvie...
Azure vs. AWS: Which Certification Provides the Brighter Future?
More and more companies are using cloud services, prompting more and more people to switch their current IT position to something cloud-related. The problem is most people only have that much time after work to learn new technologies, and there are plenty of cloud services that you can ...
Blog Digest: 5 Reasons to Get AWS Certified, OWASP Top 10, Getting Started with VPCs, Top 10 Soft Skills, and More
Thank you for being a valued member of our community! We recently sent out a short survey to understand what type of content you would like us to add to Cloud Academy, and we want to thank everyone who gave us their input. If you would like to complete the survey, it's not too late. It ...