Monday Cloud Tip: Master Azure Resource Tags for Cost Allocation

Your weekly dose of actionable cloud wisdom to start the week right

The Problem

Your Azure bill arrives and it’s a mystery novel – £2,847 for “compute” and £1,203 for “storage” but no clue which department, project, or environment is burning through the budget. Without proper tagging, you’re flying blind on cloud spending and can’t hold teams accountable.

The Solution

Implement a consistent tagging strategy across all Azure resources. Tags are metadata key-value pairs that help you organise, track, and allocate costs effectively.

Essential Tags to Start With:

# Set tags using Azure CLI
az resource tag --tags \
    Environment=Production \
    Department=Marketing \
    Project=WebsiteRedesign \
    Owner=sarah.jones@company.co.uk \
    CostCentre=CC-1001 \
    --resource-group myResourceGroup \
    --name myVirtualMachine \
    --resource-type Microsoft.Compute/virtualMachines

Tag via PowerShell:

# Apply tags to a resource group (inherits to resources)
Set-AzResourceGroup -ResourceGroupName "rg-production-web" -Tag @{
    Environment="Production"
    Department="IT"
    Project="CustomerPortal"
    Owner="tech-team@company.co.uk"
    CostCentre="CC-2001"
}

Why It Matters

  • Cost Accountability: See exactly which team spent what
  • Budget Planning: Historical data helps forecast future spending
  • Resource Management: Quickly find and manage related resources
  • Compliance: Many governance frameworks require resource tracking
  • Automation: Tag-based policies can automate resource management

Try This Week

  1. Define your tagging strategy – agree on 5-7 standard tags with your team
  2. Tag one resource group – start with your most expensive environment
  3. Set up Cost Management views – filter Azure costs by your new tags
  4. Create a tagging policy – prevent untagged resources from being created

Bonus: PowerShell Script for Bulk Tagging

# Tag all resources in a subscription
$tags = @{Environment="Development"; Department="Engineering"}
Get-AzResource | Set-AzResource -Tag $tags -Force

Pro Tip: Use Azure Policy to enforce tagging standards. Create a policy that denies resource creation without required tags – it’ll save you hours of cleanup later.


Managing multi-cloud tagging? Drop me a line – I’d love to hear your strategies for keeping tags consistent across AWS, Azure, and GCP!