Tutorial / Cram Notes

As you prepare for the AZ-104 Microsoft Azure Administrator exam, it’s important to understand the various options available for configuring VM availability. We’ll discuss the key features and scenarios of Azure Availability Sets, Availability Zones, and VM Scale Sets.

Availability Sets

Availability Sets are a logical grouping that enables Azure to understand how your application is built to provide for redundancy and availability. By placing your VMs into an availability set, you ensure that VMs are distributed across multiple fault domains (physical hardware) and update domains (logical group where VMs can be rebooted during maintenance).

Each fault domain represents a unit of physical hardware that can fail independently, such as a server rack. Update domains indicate groups that Azure will sequentially reboot during planned maintenance, limiting the impact on the availability of your service.

To configure an availability set:

  1. Create a new availability set or choose an existing one during the creation of each VM.
  2. Place each VM that supports the same role of your application into the same availability set to ensure they’re distributed across fault and update domains.

Availability Zones

Availability Zones are unique physical locations within an Azure region. Each zone is made up of one or more datacenters equipped with independent power, cooling, and networking. By leveraging Availability Zones, you can provide higher levels of availability and redundancy to your applications.

The essential steps to configure VMs for Availability Zones are:

  1. Choose an Azure region that supports Availability Zones.
  2. When creating a VM, select the “Availability options” and then choose “Availability Zone”.
  3. Assign the VM to a specific zone (for example, Zone 1, Zone 2, or Zone 3).

A virtual machine can only be a member of one Availability Zone and cannot be combined with an availability set.

VM Scale Sets

VM Scale Sets allow you to create and manage a group of load-balanced VMs. The number of VM instances can automatically increase or decrease in response to demand or a defined schedule, which enhances the high availability of your applications. Scale Sets also provide high availability because they are spread across fault domains and update domains.

Configuring VM Scale Sets involves:

  1. Creating a scale set and defining the VM size, OS image, and configuration.
  2. Setting scale-out and scale-in rules based on metrics (like CPU usage, memory demand, etc.).
  3. Optionally integrating with Azure Load Balancer or Azure Application Gateway for traffic distribution.
Feature Availability Sets Availability Zones VM Scale Sets
Distribution Across multiple fault and update domains Across physically separate zones within a region Across fault and update domains
Redundancy Protects from failures of hardware Protects from zonal outages Provides autoscaling for high demand
Scalability Limited by the number of VMs in the set Limited by the number of zones available Highly scalable to thousands of VMs
Planned Maintenance VMs in the same update domain can be rebooted Unaffected by maintenance in other zones Can handle maintenance without downtime
Unplanned Maintenance Spread across fault domains to minimize impact Independent infrastructure mitigates risks VM instances can be redistributed on failures
Usage Scenario Non-critical applications requiring maintenance windows Mission-critical apps requiring best resiliency Large applications that scale dynamically

Best Practices:

  • For critical applications requiring high availability, consider using both Availability Zones and VM Scale Sets.
  • Use managed disks with VM Scale Sets for better reliability and performance.

Knowing how to set up and manage the availability of virtual machines is essential for the Azure Administrator. The ability to choose the right option based on the application’s needs and understanding how to configure them is an important skill set that will be tested in the AZ-104 exam. Through the use of Availability Sets, Availability Zones, and VM Scale Sets, Azure provides comprehensive tools to ensure that applications hosted on VMs are resilient and can meet the demands of businesses and their users.

Practice Test with Explanation

True or False: Azure Availability Zones protect your applications and data from datacenter-level failures.

  • Answer: True

Explanation: Azure Availability Zones are unique physical locations within an Azure region. They are made up of one or more datacenters equipped with independent power, cooling, and networking to ensure resiliency.

In Azure, the feature that automatically distributes VM instances within a scale set across update and fault domains is known as:

  • A) Azure Load Balancer
  • B) Availability Sets
  • C) Azure Site Recovery
  • D) Virtual Machine Scale Sets

Answer: B) Availability Sets

Explanation: Availability Sets are a feature that ensures VMs are distributed across multiple hardware nodes in separate update and fault domains for redundancy.

True or False: Virtual Machine Scale Sets ensure high availability, auto-scalability, and load balancing of applications.

  • Answer: True

Explanation: Virtual Machine Scale Sets provide high availability by distributing instances across fault domains, and they also provide scalability and load balancing capabilities.

How many fault domains can an availability set have in most Azure regions?

  • A) 2
  • B) 3
  • C) 5
  • D) 20

Answer: B) 3

Explanation: In most Azure regions, an availability set can be configured with up to 3 fault domains.

True or False: A single Availability Zone can guarantee fault tolerance and no downtime during planned or unplanned maintenance events.

  • Answer: False

Explanation: A single Availability Zone does not guarantee fault tolerance or no downtime during all types of events. For higher tolerance, you must replicate applications and data across multiple zones.

Which Azure feature helps to minimize downtime for virtual machines during Azure infrastructure maintenance?

  • A) Azure Advisor
  • B) Azure Backup
  • C) Availability Sets
  • D) Planned Maintenance

Answer: D) Planned Maintenance

Explanation: Planned Maintenance is a process that helps to minimize downtime and maintain the reliability of the platform during Azure infrastructure updates.

Multiple select: Which of the following are supported by Azure Site Recovery? (Choose all that apply)

  • A) On-premises to Azure replication
  • B) Azure VM to Azure VM replication
  • C) Application-level replication
  • D) SQL Server Always On replication

Answer: A) On-premises to Azure replication, B) Azure VM to Azure VM replication

Explanation: Azure Site Recovery supports business continuity by enabling replication of workloads from on-premises to Azure and between Azure VMs.

True or False: An Azure Load Balancer can only distribute traffic within the same region.

  • Answer: True

Explanation: Azure Load Balancer operates at the regional level, distributing traffic within that region only. To distribute traffic across regions, you would use Azure Traffic Manager or Azure Front Door.

True or False: Azure Backup offers point-in-time recovery of virtual machines.

  • Answer: True

Explanation: Azure Backup provides point-in-time recovery features that allow you to restore virtual machines to a specific time.

True or False: Managed disks are required for VMs to be included in an availability set.

  • Answer: False

Explanation: Managed disks are recommended due to their resiliency benefits, but they are not required for a VM to be a part of an availability set.

True or False: Azure’s virtual machine auto-scaling capabilities are only available within the same availability zone.

  • Answer: False

Explanation: Virtual machine auto-scaling is not restricted to a single availability zone; it can scale across availability zones and regions depending on the configuration of Virtual Machine Scale Sets and traffic distribution mechanisms like Azure Traffic Manager.

Single select: Which Azure service provides geographic distribution of applications for high availability and network performance optimization?

  • A) Azure Availability Sets
  • B) Azure Load Balancer
  • C) Azure Traffic Manager
  • D) Azure Site Recovery

Answer: C) Azure Traffic Manager

Explanation: Azure Traffic Manager is a DNS-based traffic load balancer that enables you to distribute traffic optimally to services across global Azure regions, thus providing high availability and responsiveness.

Interview Questions

What is an availability set in Azure?

An availability set in Azure is a logical grouping of virtual machines that are deployed across multiple fault domains and update domains to provide high availability.

How do you create an availability set in the Azure portal?

To create an availability set in the Azure portal, you can navigate to the “Availability sets” page and click on the “+ Add” button. Then, you can enter a name and description for the availability set, choose the region, and configure the fault domains and update domains.

What is a fault domain in Azure?

A fault domain in Azure is a group of physical hardware that shares a common power source and network switch. By deploying virtual machines across multiple fault domains, you can ensure that your application remains available even if one of the fault domains fails.

How do you add virtual machines to an availability set in the Azure portal?

To add virtual machines to an availability set in the Azure portal, you can navigate to the “Virtual machines” page and select the virtual machine you want to add to the availability set. Then, you can click on the “Configuration” tab and select the availability set you want to add the virtual machine to.

What is a virtual machine scale set in Azure?

A virtual machine scale set in Azure is a group of identical virtual machines that can be scaled up or down based on demand to provide high availability.

How do you create a virtual machine scale set in the Azure portal?

To create a virtual machine scale set in the Azure portal, you can navigate to the “Virtual machine scale sets” page and click on the “+ Add” button. Then, you can enter a name and description for the virtual machine scale set, choose the region, and configure the number of virtual machines, the operating system, and the virtual machine size.

What is a load balancer in Azure?

A load balancer in Azure is a service that distributes incoming traffic across multiple virtual machines to provide high availability and improve application performance.

How do you configure a load balancer for virtual machines in an availability set?

To configure a load balancer for virtual machines in an availability set, you can create a backend pool that includes the virtual machines in the availability set and configure a load balancing rule that directs incoming traffic to the backend pool.

What is an update domain in Azure?

An update domain in Azure is a group of virtual machines that are updated or restarted at the same time. By deploying virtual machines across multiple update domains, you can ensure that your application remains available even during maintenance.

How do you configure automatic scaling for a virtual machine scale set in the Azure portal?

To configure automatic scaling for a virtual machine scale set in the Azure portal, you can navigate to the “Scaling” page and click on the “+ Add” button. Then, you can enter a name and description for the scaling rule, choose the metric and threshold for the rule, and configure the action to take when the threshold is met.

Can you move virtual machines between availability sets?

Yes, you can move virtual machines between availability sets, but it requires some downtime for the virtual machine.

How do you manage the availability of virtual machines using Azure Site Recovery?

Azure Site Recovery is a disaster recovery solution that can help you manage the availability of virtual machines by replicating them to a secondary location and automating failover in the event of an outage.

How do you monitor the availability of virtual machines in Azure?

You can monitor the availability of virtual machines in Azure by using Azure Monitor, which provides insights into virtual machine performance, availability, and health.

0 0 votes
Article Rating
Subscribe
Notify of
guest
14 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Alexandre Leroy
11 months ago

Can someone explain how to set up availability sets for VMs in Azure?

Vanessa Neumeister
2 years ago

Is it possible to add existing VMs to an availability set?

Louis Owens
1 year ago

What’s the best practice for ensuring VM high availability in Azure?

Catalina Prieto
1 year ago

Can someone explain the difference between availability sets and availability zones?

Zachary Zhang
1 year ago

How do managed disks play into the high availability of VMs?

Avery Cooper
1 year ago

Do I need to use load balancers when setting up availability sets?

Emre Öztonga
1 year ago

Is there any cost advantage to using availability sets?

Melike Öymen
1 year ago

Thanks for this informative post!

14
0
Would love your thoughts, please comment.x
()
x