Module 1: Organising the Snips Azure Environment

Module 1Level 1Azure Explorer

Organising the Snips Azure Environment

Governance foundations·40 minutes

Tenants, management groups and subscriptionsResource groups and resourcesAzure regions and resource locationsResource naming conventionsTags and tagging strategy+3 more
The situation

The governance problem

The Head of Digital & IT has seen what happens when Azure environments grow without structure. At a previous organisation, resources had names like "test123", "PaulTest" and "newserver". Nobody knew what they were for, who owned them or whether they could be deleted. Costs were uncontrolled and the environment was impossible to audit.

Before Snips deploys a single production resource, you need to design a structure that will scale, stay organised and remain governable. This module covers the foundations of Azure governance.

What you will learn

Tenants, management groups and subscriptions
Resource groups and resources
Azure regions and resource locations
Resource naming conventions
Tags and tagging strategy
Resource locks
Azure Resource Manager hierarchy
Designing the Snips subscription structure

The Snips hierarchy design

Before creating any resources, design the management structure. Here is the Snips hierarchy:

Snips Housing Entra Tenant
└Platform (management group)— Shared services
└Landing Zones (management group)— Workload subscriptions
└SNIPS-PROD (subscription)— Production workloads
└rg-network-prod-uks-001— Networking resources
└rg-contractors-prod-uks-001— Contractor Portal
└rg-monitoring-prod-uks-001— Monitoring resources
└SNIPS-NONPROD (subscription)— Dev and test

Naming conventions

A consistent naming convention makes resources identifiable without opening them. The Snips standard is:

type-workload-environment-region-instance
Example: rg-contractors-prod-uks-001

Interactive exercise: spot the governance problems

Poor names (avoid)

RG1No type, env or owner
test123No type, env or owner
PaulTestNo type, env or owner
newserverNo type, env or owner
storage987No type, env or owner

Good names (use)

rg-contractors-prod-uks-001
rg-network-prod-uks-001
vm-contractors-prod-001
st-snips-prod-uks-001

Tags

Tags are name-value pairs attached to resources. Snips requires these five tags on all resources:

EnvironmentProduction, NonProduction, Development, Testing
OwnerThe team or individual responsible for the resource
ServiceThe business service the resource supports
CostCentreThe finance cost centre for billing allocation
CriticalityHigh, Medium, Low

Resource locks

CanNotDelete

Prevents deletion of the resource or resource group. Users can still read and modify the resource. Use this for production resource groups to prevent accidental deletion.

ReadOnly

Prevents both modifications and deletion. Use this only for resources that should never change, such as a reference network configuration. Be careful — this can prevent legitimate operational work.

Resource locks apply to all users regardless of their RBAC role, including Owners. Even a subscription Owner cannot delete a resource with a CanNotDelete lock without first removing the lock.

Azure CLI

Create the Snips resource structure
# Create the Snips management group structure
az account management-group create --name "snips-platform" --display-name "Platform"
az account management-group create --name "snips-landingzones" --display-name "Landing Zones"

# Create a resource group with proper naming and tags
az group create \
  --name rg-contractors-prod-uks-001 \
  --location uksouth \
  --tags Environment=Production Owner=AzureAdmin Service=ContractorPortal CostCentre=IT001 Criticality=High

# Apply a CanNotDelete lock to the resource group
az lock create \
  --name lock-rg-contractors-prod \
  --resource-group rg-contractors-prod-uks-001 \
  --lock-type CanNotDelete

Azure PowerShell

Create resource groups with tags
# Create resource groups for the Snips environment
New-AzResourceGroup -Name "rg-network-prod-uks-001" -Location "uksouth" `
  -Tag @{Environment="Production"; Owner="AzureAdmin"; Service="Network"; CostCentre="IT001"}

New-AzResourceGroup -Name "rg-contractors-prod-uks-001" -Location "uksouth" `
  -Tag @{Environment="Production"; Owner="AzureAdmin"; Service="ContractorPortal"; CostCentre="IT001"}

# Apply a resource lock
New-AzResourceLock `
  -LockName "lock-rg-contractors-prod" `
  -LockLevel CanNotDelete `
  -ResourceGroupName "rg-contractors-prod-uks-001"

Have a go

Objective

Create the Snips resource group structure with correct naming and tags

Time

20-30 minutes

Azure cost

Free

Prereqs

Azure subscription with Contributor access

  1. Create the four Snips resource groups using the CLI commands above.
  2. Verify each resource group has all five required tags in the Azure Portal.
  3. Apply a CanNotDelete lock to rg-contractors-prod-uks-001.
  4. Attempt to delete the resource group and observe the error.
  5. Remove the lock and verify you can now delete it (use a test resource group, not production).

Knowledge check

Five scenario-based questions on governance and organisation.

1.Snips has created resources in several resource groups with no consistent naming. Which Azure feature would you use to enforce a naming standard going forward?

2.A developer has created a resource group called 'test123' in East US. What are the two governance problems with this?

3.You want to prevent the production networking resource group from being accidentally deleted. Which resource lock type should you apply?

4.Which of the following is the correct naming convention for a production virtual network in UK South?

5.Snips wants to apply a policy that requires all resources to have an Owner tag. At which scope should this be applied to cover both SNIPS-PROD and SNIPS-NONPROD subscriptions?

Ready to mark this module complete?

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

AZ-104 objectives covered
  • Manage Azure subscriptions and resources
  • Implement and manage storage