AZ-104 Microsoft Azure Administrator Exam
You're a great admin... on-prem. Now, become a great admin in the cloud and prove it by passing the Microsoft Certified: Azure Administrator Associate exam!
Practice Test

Practice Test

Deploy virtual machines to availability zones and availability sets
Configure Availability Zones and Sets for Virtual Machines
Availability Zones and Availability Sets are crucial components in Azure's infrastructure that help ensure high availability and redundancy for your applications. Understanding their differences is essential to making informed decisions about fault tolerance and disaster recovery.
Availability Zones
Availability Zones in Azure consist of physically separated datacenters within a single region. Each zone has its own power, network, and cooling, which means that if one zone experiences a failure, services can continue to run in another zone. This separation is key for ensuring high availability.
Key points about Availability Zones include:
- Physical Separation: Each zone is independently powered and cooled.
- High Availability: Resources deployed across multiple zones can fail over in the event of a zone failure.
- Resilience: They provide protection against failures localized to one data center.
Virtual Machine Scale Sets
A Virtual Machine Scale Set is a service in Azure that helps you manage and scale groups of load-balanced VMs. They offer the flexibility of scaling up or down automatically based on demand or a set schedule. Scale sets support deployments across zones, enhancing fault tolerance.
The deployment options for Virtual Machine Scale Sets include:
- Zonal Deployment: VMs are constrained to a single zone, providing control over the zone they run in.
- Zone-Redundant Deployment: VMs are spread across multiple zones, improving resilience.
Availability Sets
An Availability Set is a logical grouping designed to ensure that the VMs within it are distributed across multiple fault and update domains. This setup prevents simultaneous failures or updates from affecting all VMs at once.
The benefits of using Availability Sets are:
- Fault Domains: Distribute VMs across different physical racks to avoid single points of failure.
- Update Domains: Stagger updates to reduce downtime during maintenance operations.
Creating and Configuring Availability Zones and Sets
You can create and configure these structures using several Azure tools like the Azure portal, Azure CLI, PowerShell, or ARM templates. For example, when using Azure CLI or PowerShell, you can specify multiple zones to ensure a spread across them for greater redundancy.
An example command for creating a zone-redundant scale set with Azure PowerShell may look like this:
New-AzVmss `
-ResourceGroupName "myResourceGroup" `
-Location "EastUS2" `
-OrchestrationMode "Flexible" `
-VMScaleSetName "myScaleSet" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-PublicIpAddressName "myPublicIPAddress" `
-LoadBalancerName "myLoadBalancer" `
-UpgradePolicy "Automatic" `
-Zone "1", "2", "3"
Conclusion
Incorporating availability zones and sets into your Azure architecture is vital for ensuring high availability and resilience. By deploying virtual machines across multiple zones or within defined availability sets, you enhance your fault tolerance against both planned and unexpected outages. Understanding how these tools impact your application's architecture ensures that your services remain operational and performant even during disruptions.