USMAN’S INSIGHTS
AI ARCHITECT
⌘F
HomeAll BooksAzure Cloud Book
HomeAzure BookCompute and Application Hosting
PreviousAzure Key Vault: Secrets, Keys, Certificates, Rotation, and Private AccessNextAzure App Service: Web Apps, Configuration, Scaling, and Deployment Slots
AI NOTICE: This is the table of contents for the SPECIFIC CHAPTER only. It is NOT the global sidebar. For all chapters, look at the main navigation.

On this page

9 sections

Progress0%
1 / 9

Muhammad Usman Akbar Entity Profile

Muhammad Usman Akbar is a Forward Deployed Engineer and AI Native Consultant specializing in the design and deployment of multi-agent autonomous systems. Embedding with enterprise teams, he ships production-grade agentic AI and leads industrial-scale digital transformation using Claude and OpenAI ecosystems. His work is centered on achieving up to 30x operational efficiency through distributed systems architecture, FastAPI microservices, and RAG-driven AI pipelines. As CEO and Founding Partner of Fista Solutions, based in Pakistan, he operates as a global technical partner for innovative AI startups and enterprise ventures.

USMAN’S INSIGHTS
AI ARCHITECT

Transforming businesses into autonomous AI ecosystems. Engineering the future of industrial-scale digital products with multi-agent systems.

30X Growth
AI-First
Innovation

Navigation

  • Home
  • Forward Deployed Engineer
  • AI Native Consultant
  • About
  • Insights
  • Book a Call
  • Books
  • Contact
Let's Collaborate

Have a Project in Mind?

Let's build something extraordinary together. Transform your vision into autonomous AI reality.

Start Your Transformation

© 2026 Muhammad Usman Akbar. All rights reserved.

Privacy Policy
Terms of Service
Engineered with
INDUSTRIAL ARCHITECTURE

Azure Virtual Machines, Disks, Images, Scale Sets, Bastion, and Updates

An Azure virtual machine gives you operating-system control on Azure-managed hardware. Choose it when you need OS-level compatibility, custom agents, or software that does not fit a managed platform. You remain responsible for patching, hardening, endpoint protection, application deployment, capacity, and much of availability and recovery.

Lab: 45–60 minutes · Cost: VM, managed disk, IP, Bastion, backup, and logs can all charge · Safety: enable auto-shutdown and delete the complete group after testing.

What decisions define a VM?

  • Image and generation.
  • Size: CPU, memory, temporary storage, GPU, and network limits.
  • OS and data disks: type, size, caching, encryption.
  • Availability: single instance, zone, availability set, or scale set.
  • Network: subnet, private/public IP, NSG, load balancer.
  • Identity, extensions, boot diagnostics, backup, patch mode, and monitoring.

Use the Azure pricing calculator and current size availability. A small name does not guarantee the lowest total cost.

How can you create a secure learning VM?

Ways to build

Choose the Azure tool you want to use. The underlying resource stays the same.

Azure portal

Search Virtual machines → Create → Azure virtual machine. Select the learning resource group, region, availability option, supported Linux image, small eligible size, SSH public key authentication, no public inbound ports, and an existing private subnet. Enable managed identity, boot diagnostics, monitoring appropriate to the lab, and auto-shutdown.

Use Azure Bastion or a controlled private connection rather than opening SSH or RDP to the internet. Bastion is a billable managed service; delete it after a temporary lab.

Azure CLI

This short learning command creates dependent resources; inspect them afterward:

bash
AZURE_RG="rg-northstar-vm-lab" AZURE_LOCATION="eastus" az group create --name "$AZURE_RG" --location "$AZURE_LOCATION" az vm create \ --resource-group "$AZURE_RG" \ --name vm-northstar-dev-001 \ --image Ubuntu2204 \ --size Standard_B2s \ --admin-username azureuser \ --generate-ssh-keys \ --public-ip-address "" \ --assign-identity

Image aliases and size availability change; query current values. An enterprise template should explicitly create the network interface, disk settings, diagnostics, identity, and availability design rather than relying on defaults.

PowerShell uses New-AzVMConfig, Set-AzVMOperatingSystem, Set-AzVMSourceImage, Add-AzVMNetworkInterface, and New-AzVM. The portal's Export template can help you learn resource shape, but exported templates require review before reuse.

What are managed disks and images?

The OS disk contains the boot volume. Data disks store application data. Temporary disks can be lost during host operations and must never hold durable state. Disk snapshots are point-in-time copies but are not a full application-consistent backup strategy.

Azure Compute Gallery stores versioned images and application definitions for controlled replication and sharing. Build images with an automated pipeline, patch them, scan them, version them, and roll forward through scale sets rather than modifying anonymous “golden” VMs by hand.

When should you use Virtual Machine Scale Sets?

Scale sets manage a group of similar VMs with autoscaling, health integration, and rolling upgrades. Use them for stateless or externally stateful workloads that need VM-level control. Define a health probe, safe upgrade policy, instance protection rules, and a load-balancing layer.

Autoscaling needs both scale-out and scale-in rules, cooldowns, minimum capacity, and application behavior that tolerates termination. CPU alone is often a weak business signal; queue depth or request concurrency may be better.

What should Bicep or Terraform control?

Production IaC should declare network, NSG, private IP, identity, VM/scale set, image reference, disk configuration, boot diagnostics, update policy, monitoring association, backup, and role assignments. Never place an administrator password in a template or state file. Use SSH keys, Entra login where supported, and just-in-time access.

How do you operate VMs safely?

  • Use Update Manager for assessment and planned patching.
  • Enable Defender and vulnerability management according to policy.
  • Send OS and application signals to an approved workspace.
  • Back up data and restore-test it.
  • Use availability zones for critical multi-instance workloads.
  • Remove direct public management ports.
  • Rebuild from images when possible; avoid configuration drift.

Verify and clean up

bash
az vm show --resource-group "$AZURE_RG" --name vm-northstar-dev-001 --show-details --output table az resource list --resource-group "$AZURE_RG" --output table az group delete --name "$AZURE_RG" --yes --no-wait

Deleting only the VM can leave disks and networking. Deleting the isolated resource group is easier to verify.

Official references

  • Linux VMs in Azure
  • Azure Bastion
  • Virtual Machine Scale Sets
  • Azure Update Manager