View Fault and Update Domains in Azure Resource Manager

View Fault and Update Domains in Azure Resource Manager

Q. How can I view the Fault Domains and Update Domains for ARM VMs?

A. The Fault Domain and Update Domains for ARM VMs can be viewed by looking at the Availability Set within the Azure portal as shown

This can also be seen using PowerShell by getting the status of each VM which provides the InstanceView that then shows the Fault Domain and Update Domain information as properties.

PS C:\> $AS = Get-AzureRmAvailabilitySet -ResourceGroupName "RGEastUSMinecraft"
PS C:\> $AS.VirtualMachinesReferences | ForEach { $VMResource =(Get-AzureRmResource -Id $_.id); $VM= Get-AzureRMVM -Name $VMResource.Name -ResourceGroup $VMResource.ResourceGroupName -Status; [PSCustomObject]@{"Name"=$VM.Name; "FaultDomain"=$VM.PlatformFaultDomain;"UpdateDomain"=$VM.PlatformUpdateDomain;}}

Name    FaultDomain UpdateDomain
----    ----------- ------------
WebSrv1       0        0
WebSrv2       1        1
WebSrv3       2        2
WebSrv4       0        3

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish