Module 0Level 1Azure Explorer

Your First Day as the Azure Administrator

Welcome to Snips Housing · 45 minutes

What Azure is and why organisations use itCloud computing models: IaaS, PaaS and SaaSAzure regions and availability zonesSubscriptions, resource groups and resourcesAzure Resource Manager (ARM)+5 more
The situation

Your first day at Snips Housing Association

You have just started as the Azure Administrator at Snips Housing Association, a UK housing association managing approximately 12,000 homes. Snips has been using Microsoft 365 for several years, but its Azure footprint is almost non-existent.

This morning, the Head of Digital & IT has called you into a meeting. Snips has an ageing internal application called the Contractor Document Portal. It runs on an on-premises Windows Server using IIS and stores contractor insurance certificates, compliance evidence and supporting documents. The server is becoming unreliable and the organisation wants to investigate moving it to Azure.

Your job is to prepare the Azure environment and eventually migrate the workload. But first, you need to understand what Azure is, how it is organised, and how to administer it.

What you will learn

What Azure is and why organisations use it
Cloud computing models: IaaS, PaaS and SaaS
Azure regions and availability zones
Subscriptions, resource groups and resources
Azure Resource Manager (ARM)
Microsoft Entra ID
Azure Portal, Azure CLI, Azure PowerShell and Cloud Shell
ARM templates and Bicep
Control plane versus data plane
Shared responsibility model

What is Microsoft Azure?

Microsoft Azure is a cloud computing platform. Instead of buying and managing physical servers in your own datacentre, you rent computing resources from Microsoft and pay only for what you use. Azure operates from datacentres around the world, which means Snips can deploy infrastructure close to its users in the UK without owning any physical hardware.

For Snips, this means the Contractor Document Portal can run on infrastructure that Microsoft maintains, patches and keeps physically secure. Your job as the Azure Administrator is to configure, manage and monitor what runs on that infrastructure.

Cloud service models

Azure offers three service models. Understanding which one applies to a workload determines how much you are responsible for managing.

Infrastructure as a Service (IaaS)

Microsoft provides the physical hardware, network and virtualisation layer. You manage the operating system, runtime, middleware, data and application. Example: an Azure Virtual Machine running Windows Server. You patch it, you configure it, you secure it.

Platform as a Service (PaaS)

Microsoft manages the OS, runtime and infrastructure. You deploy your application and manage your data. Example: Azure App Service or Azure SQL Database. You do not patch the OS because Microsoft does that for you.

Software as a Service (SaaS)

Microsoft manages everything. You simply use the application. Example: Microsoft 365. Snips already uses this model for email, Teams and SharePoint.

Administrator mindset: When a team asks you to host something in Azure, always ask which model is appropriate. A legacy application that needs a specific OS version will need IaaS. A modern web application can often use PaaS, which reduces your operational overhead significantly.

Azure regions and availability zones

Azure is organised into regions — geographic areas that each contain one or more datacentres. For Snips, you will primarily use UK South (London) and UK West (Cardiff) to keep data within the United Kingdom and meet data residency requirements.

Within a region, availability zones are physically separate datacentres, each with independent power, cooling and networking. Deploying resources across availability zones protects against a single datacentre failure.

Deploying to a single availability zone does not protect you against a zone failure. Always check whether a service supports zone-redundant deployment for production workloads.

Azure Resource Manager hierarchy

Everything in Azure is organised through Azure Resource Manager (ARM). ARM is the management layer that handles all create, read, update and delete operations for Azure resources.

Microsoft Entra Tenant— Identity boundary
└Management Groups— Governance at scale
└Subscriptions— Billing boundary
└Resource Groups— Logical containers
└Resources— VMs, storage, networks...

Tenant

Your organisation's Microsoft Entra ID directory. Snips has one tenant that covers both Microsoft 365 and Azure. All Azure subscriptions belong to this tenant.

Management groups

Optional containers for organising subscriptions. You can apply governance policies at the management group level and they are inherited by all subscriptions beneath.

Subscriptions

A billing and access boundary. Snips will use SNIPS-PROD for production workloads and SNIPS-NONPROD for development and testing.

Resource groups

Logical containers for related resources. You can apply tags, policies and access control at the resource group level.

Resources

The actual Azure services: virtual machines, storage accounts, virtual networks, databases and more. Every resource belongs to exactly one resource group.

Microsoft Entra ID

Microsoft Entra ID is the identity and access management service that underpins both Microsoft 365 and Azure. Snips already has an Entra ID tenant for Microsoft 365. When you connect Azure subscriptions to that tenant, the same user accounts and groups can be used to control access to Azure resources.

Snips does not need a separate identity system for Azure. The same accounts your colleagues use to sign in to Microsoft 365 can be granted access to Azure resources.

Administration tools

Azure Portal

A web-based graphical interface at portal.azure.com. Good for exploration, one-off tasks and learning. Not suitable for repeatable or automated operations.

Azure CLI

A cross-platform command-line tool. Commands start with az. Runs on Windows, macOS and Linux. Excellent for scripting and automation.

Azure PowerShell

A PowerShell module for Azure administration. Commands use the Az prefix. Preferred by teams already using PowerShell for Windows administration.

Cloud Shell

A browser-based shell available directly in the Azure Portal. Comes pre-installed with Azure CLI and Azure PowerShell. No local installation required.

Bicep

A domain-specific language for deploying Azure resources as code. Enables repeatable, version-controlled infrastructure deployments.

Control plane versus data plane

Control plane

Operations that manage Azure resources themselves: creating a storage account, deleting a virtual machine, changing a network security group rule. Controlled by Azure RBAC.

Data plane

Operations that access the data or functionality inside a resource: reading a blob, connecting via RDP, querying a database. Data plane access is controlled separately from control plane access.

A user with the Contributor role on a storage account can manage the storage account but may not be able to read the data inside it unless they also have the Storage Blob Data Reader role.

Shared responsibility model

ResponsibilityOn-premisesIaaSPaaSSaaS
Physical datacentreYouMicrosoftMicrosoftMicrosoft
Network infrastructureYouMicrosoftMicrosoftMicrosoft
VirtualisationYouMicrosoftMicrosoftMicrosoft
Operating systemYouYouMicrosoftMicrosoft
Runtime / middlewareYouYouMicrosoftMicrosoft
ApplicationYouYouYouMicrosoft
Data and identityYouYouYouYou

See it in Snips

The Snips starting position

Snips Housing already has a Microsoft Entra ID tenant for Microsoft 365. The plan is to create two subscriptions within that tenant:

SNIPS-PRODProduction workloads including the Contractor Document Portal
SNIPS-NONPRODDevelopment, testing and learning environments

Azure CLI

The Azure CLI is available in Cloud Shell or can be installed locally. All commands start with az.

Azure CLI — explore your environment
# Check which account you are signed in as
az account show

# List all subscriptions available to you
az account list --output table

# Switch to a specific subscription
az account set --subscription "SNIPS-PROD"

# List all resource groups in the current subscription
az group list --output table

# Create a temporary resource group for learning
az group create \
  --name rg-learning-temp-uks-001 \
  --location uksouth \
  --tags Environment=Learning Owner=YourName Service=Training

# Delete the resource group when you are done
az group delete --name rg-learning-temp-uks-001 --yes --no-wait

Azure PowerShell

Azure PowerShell — explore your environment
# Connect to Azure (opens a browser sign-in window)
Connect-AzAccount

# List all subscriptions
Get-AzSubscription

# Set the active subscription
Set-AzContext -SubscriptionName "SNIPS-PROD"

# Show the current context
Get-AzContext

# List all resource groups
Get-AzResourceGroup | Format-Table ResourceGroupName, Location, ProvisioningState

# Create a resource group with tags
New-AzResourceGroup `
  -Name "rg-learning-temp-uks-001" `
  -Location "uksouth" `
  -Tag @{Environment="Learning"; Owner="YourName"; Service="Training"}

# Remove the resource group
Remove-AzResourceGroup -Name "rg-learning-temp-uks-001" -Force

Infrastructure as code: Bicep

Bicep is a declarative language for deploying Azure resources. You describe the desired state of your infrastructure in a .bicep file and Azure deploys it.

Bicep — create a resource group
targetScope = 'subscription'

param location string = 'uksouth'
param environment string = 'Learning'

resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
  name: 'rg-learning-temp-uks-001'
  location: location
  tags: {
    Environment: environment
    Owner: 'YourName'
    Service: 'Training'
  }
}
Deploy the Bicep file
az deployment sub create \
  --location uksouth \
  --template-file resource-group.bicep

Have a go

Objective

Explore Azure and create your first resource group

Time

20-30 minutes

Azure cost

Free (resource groups have no cost)

Prereqs

Azure subscription with Contributor access

  1. Sign in to the Azure Portal at portal.azure.com using your organisational account.
  2. Open Cloud Shell (the terminal icon in the top navigation bar). Choose Bash for Azure CLI or PowerShell.
  3. Run az account show to confirm which subscription is active.
  4. Run az group list --output table to see existing resource groups.
  5. Create a resource group named rg-learning-temp-uks-001 in UK South with the tags shown above.
  6. In the Azure Portal, navigate to Resource Groups and verify the tags are present.
  7. Delete the resource group using the CLI command shown above.

Administrator notebook

  • 1Always check which subscription is active before running CLI or PowerShell commands. Use az account show or Get-AzContext.
  • 2Resource groups are free. Use them generously to organise resources by workload, environment and region.
  • 3Tags are your friend. Enforce them from day one. Retrofitting tags to hundreds of resources is painful.
  • 4Cloud Shell is always available in the portal. You do not need to install anything to get started.
  • 5Bicep is the preferred approach for repeatable deployments. Start using it early, even for simple resources.
  • 6The control plane (ARM) and data plane are separate. A user who can manage a resource may not be able to access its data.

Knowledge check

Five scenario-based questions covering the topics in this module.

1.Snips Housing wants to host the Contractor Document Portal in Azure without managing the underlying operating system or runtime. Which cloud service model best fits this requirement?

2.You need to deploy Snips resources in a way that protects against a single datacentre failure. Which Azure feature should you use?

3.A colleague runs az group list in Cloud Shell and receives an authentication error. What is the most likely cause?

4.Under the shared responsibility model, which of the following is always the customer's responsibility regardless of the service model used?

5.You want to apply a governance policy that prevents resources being created outside UK South and UK West. At which level of the ARM hierarchy should you apply this policy to cover all Snips subscriptions?

Exam check

This module covers the following AZ-104 objectives:

  • Manage Azure identities and governance — understand Entra ID, subscriptions and management groups
  • Manage Azure subscriptions and resources — understand the ARM hierarchy and resource organisation
  • Use Azure CLI, Azure PowerShell and Cloud Shell for administration

Ready to mark this module complete?

Mark this module complete when you have read all sections, attempted the lab and completed the knowledge check.