Bird
Raised Fist0
Azurecloud~5 mins

Cloud service models (IaaS, PaaS, SaaS) in Azure - Commands & Configuration

Choose your learning style10 modes available
Introduction
Cloud service models help you choose how much control and responsibility you want over your computing resources. They solve the problem of managing hardware, software, and applications by offering different levels of service.
When you want to rent virtual machines and control the operating system and software yourself (IaaS).
When you want to build and run applications without managing the underlying servers (PaaS).
When you want to use ready-made software online without installing anything (SaaS).
When you need to quickly scale your app without worrying about infrastructure.
When you want to focus on your app code and not on hardware or system updates.
Commands
This command creates a virtual machine in Azure, showing how you use IaaS to get full control over a server.
Terminal
az vm create --resource-group example-rg --name example-vm --image UbuntuLTS --admin-username azureuser --generate-ssh-keys
Expected OutputExpected
{ "fqdns": "", "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/example-vm", "location": "eastus", "name": "example-vm", "powerState": "VM running", "resourceGroup": "example-rg", "zones": null }
→
--resource-group - Specifies the Azure resource group to use
→
--image - Chooses the operating system image for the VM
→
--generate-ssh-keys - Creates SSH keys for secure login
This command creates a web app using Azure App Service, demonstrating PaaS where you deploy apps without managing servers.
Terminal
az webapp create --resource-group example-rg --plan example-plan --name example-webapp --runtime "DOTNETCORE|6.0"
Expected OutputExpected
{ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/example-rg/providers/Microsoft.Web/sites/example-webapp", "name": "example-webapp", "state": "Running", "type": "Microsoft.Web/sites", "hostNames": ["example-webapp.azurewebsites.net"] }
→
--plan - Specifies the App Service plan that defines the compute resources
→
--runtime - Sets the runtime environment for the app
This command checks a user in Azure Active Directory, an example of SaaS where you use software services managed by Microsoft.
Terminal
az ad user show --id user@example.com
Expected OutputExpected
{ "accountEnabled": true, "displayName": "Example User", "mail": "user@example.com", "userPrincipalName": "user@example.com" }
→
--id - Specifies the user email or ID to look up
Key Concept

If you remember nothing else from this pattern, remember: IaaS gives you servers, PaaS gives you platforms to run apps, and SaaS gives you ready-to-use software.

Common Mistakes
Trying to manage servers in SaaS services
SaaS services are fully managed; you cannot control the underlying servers.
Use SaaS for software use only, and choose IaaS or PaaS if you need server or platform control.
Confusing PaaS with IaaS and trying to install system software
PaaS abstracts the server; you cannot install or manage system software.
Deploy your app code only on PaaS and use IaaS if you need full server control.
Summary
Use 'az vm create' to launch virtual machines with full control (IaaS).
Use 'az webapp create' to deploy apps without managing servers (PaaS).
Use Azure Active Directory or other SaaS services for ready-made software solutions.

Practice

(1/5)
1. Which cloud service model lets you rent virtual machines and manage the operating system yourself?
easy
A. Function as a Service (FaaS)
B. Infrastructure as a Service (IaaS)
C. Software as a Service (SaaS)
D. Platform as a Service (PaaS)

Solution

  1. Step 1: Understand IaaS definition

    IaaS provides virtual machines and basic infrastructure, but you manage the OS and software.
  2. Step 2: Compare with other models

    PaaS manages the platform, SaaS provides ready software, and FaaS is event-driven code execution.
  3. Final Answer:

    Infrastructure as a Service (IaaS) -> Option B
  4. Quick Check:

    IaaS = Rent VMs and manage OS [OK]
Hint: IaaS = rent machines, you manage OS and apps [OK]
Common Mistakes:
  • Confusing PaaS with IaaS and thinking platform is managed by user
  • Choosing SaaS thinking it includes VM management
  • Selecting FaaS which is not a main cloud service model here
2. Which of the following is the correct description of PaaS?
easy
A. You install and manage software on rented virtual machines.
B. You manage physical servers in your own data center.
C. You use software online without installing it.
D. You use a platform to build and run apps without managing servers.

Solution

  1. Step 1: Recall PaaS meaning

    PaaS provides a ready platform so you can build and run apps without handling server management.
  2. Step 2: Eliminate other options

    You install and manage software on rented virtual machines. describes IaaS, C describes SaaS, and D is not cloud service but on-premises.
  3. Final Answer:

    You use a platform to build and run apps without managing servers. -> Option D
  4. Quick Check:

    PaaS = Platform managed, you build apps [OK]
Hint: PaaS = platform ready, no server management [OK]
Common Mistakes:
  • Mixing PaaS with IaaS by thinking you manage servers
  • Confusing SaaS with PaaS by thinking you build apps
  • Choosing on-premises management as cloud service
3. You want to use Microsoft Azure to run a web app without managing the underlying servers. Which service model will you use?
medium
A. PaaS - Use Azure App Service to deploy your web app
B. IaaS - Create a virtual machine and install web server
C. SaaS - Use Microsoft Word online
D. IaaS - Rent storage only

Solution

  1. Step 1: Identify requirement

    The user wants to run a web app without managing servers, so server management should be handled by provider.
  2. Step 2: Match service model

    Azure App Service is a PaaS offering that lets you deploy apps without managing infrastructure.
  3. Final Answer:

    PaaS - Use Azure App Service to deploy your web app -> Option A
  4. Quick Check:

    Run app without servers = PaaS [OK]
Hint: Web app without servers means PaaS like Azure App Service [OK]
Common Mistakes:
  • Choosing IaaS and thinking you don't manage servers
  • Selecting SaaS which is for ready software, not custom apps
  • Confusing storage rental with app hosting
4. A company wants to use cloud software without installing or managing it. They mistakenly choose IaaS and start managing virtual machines. What is the error?
medium
A. They should have chosen SaaS to avoid managing software.
B. IaaS automatically manages software for them.
C. PaaS requires installing software on VMs.
D. IaaS means software is fully managed by provider.

Solution

  1. Step 1: Understand SaaS purpose

    SaaS provides ready-to-use software online without installation or management by user.
  2. Step 2: Identify mistake with IaaS

    IaaS provides virtual machines but user must install and manage software themselves.
  3. Final Answer:

    They should have chosen SaaS to avoid managing software. -> Option A
  4. Quick Check:

    Want no software management = SaaS [OK]
Hint: No software management means SaaS, not IaaS [OK]
Common Mistakes:
  • Thinking IaaS manages software automatically
  • Confusing PaaS with SaaS in software management
  • Believing IaaS means fully managed software
5. You want to build a custom business app that needs a database and automatic scaling but you don't want to manage servers or install software. Which Azure service model fits best?
hard
A. IaaS - Rent VMs and install database and app software yourself
B. SaaS - Use a ready-made business app online
C. PaaS - Use Azure SQL Database and Azure App Service
D. On-premises - Manage your own servers and software

Solution

  1. Step 1: Analyze requirements

    Needs custom app, database, automatic scaling, no server or software management.
  2. Step 2: Match with Azure services

    PaaS offers managed database (Azure SQL Database) and app hosting (Azure App Service) with scaling and no server management.
  3. Step 3: Exclude other options

    IaaS requires managing servers and software, SaaS is not custom, on-premises is self-managed.
  4. Final Answer:

    PaaS - Use Azure SQL Database and Azure App Service -> Option C
  5. Quick Check:

    Custom app + no server management = PaaS [OK]
Hint: Custom app + no servers = PaaS with managed services [OK]
Common Mistakes:
  • Choosing IaaS and expecting no server management
  • Selecting SaaS expecting custom app building
  • Thinking on-premises is cloud service
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard