Understanding Platform as a Service (PaaS)
This lesson explains platform as a service: what the provider manages, the main Azure PaaS services, and the trade-offs compared with IaaS.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what the provider and the customer manage in PaaS.
- Identify Azure services that are PaaS.
- Explain the trade-off between control and management effort in PaaS.
What PaaS provides
PaaS is a middle ground between renting infrastructure (IaaS) and renting finished software (SaaS). The cloud provider maintains the physical infrastructure, physical security and connectivity, and also the operating systems, middleware, development tools, database management systems and runtimes. The customer deploys its application code or data and configures the service; it does not need to manage software licences, patch operating systems or plan hardware.
Many PaaS services also include capabilities that would take significant work to build on VMs: automatic scaling, built-in load balancing, high availability, automated backups, deployment from source control and integrated monitoring. This lets development teams spend their time on features rather than infrastructure.
Azure PaaS services
Azure offers PaaS services for applications, data and integration. The following table lists commonly cited examples and what each provides.
| Service | What it provides |
|---|---|
| Azure App Service | Hosting for web apps, REST APIs and mobile back ends on Windows or Linux |
| Azure SQL Database | A fully managed relational database based on the SQL Server engine |
| Azure Cosmos DB | A fully managed NoSQL and relational database for globally distributed apps |
| Azure Functions | Serverless, event-driven code execution |
| Azure Container Apps | A serverless platform for running containerized applications |
Serverless services such as Azure Functions are a form of PaaS in which even the number of instances is managed by the platform and billing is per execution.
Azure PaaS services
Scenarios and trade-offs
PaaS suits a development framework scenario, in which developers build or customize cloud applications on a platform that already provides scalability, availability and multitenancy, and analytics or business intelligence, in which managed data platforms let organizations analyse data without running database servers.
The trade-off is control. The customer cannot log on to the underlying operating system, install arbitrary software or choose patch timing, and is limited to the languages, versions and configurations the platform supports. Responsibility for the application, its data, network settings and access remains with the customer, so PaaS reduces but does not remove security work.
The PaaS trade-off
Choosing PaaS
A development team is building a new web API in Python. The team wants deployment slots for testing releases, automatic scaling during busy periods and no responsibility for operating system patches. It has no special operating system requirements. Which service type and Azure service fit best?
This is a PaaS scenario: the team wants to focus on its code, needs built-in scaling and deployment features, and wants Microsoft to patch the platform. Azure App Service provides all of these for Python web APIs. Azure virtual machines (IaaS) would work but would leave patching and scaling configuration to the team, and a SaaS product would not run the team's own code.
Can you install arbitrary software on the operating system behind Azure App Service?
Show answer
No. PaaS hides the operating system, which reduces management effort but limits control.
Exam Tips
Remember for the exam
- PaaS: the provider manages infrastructure, operating system, middleware and runtime; the customer manages the app and data.
- Azure App Service, Azure SQL Database, Azure Cosmos DB and Azure Functions are PaaS examples.
- Focus on code without managing servers or patching points to PaaS.