Get-AzAvailabilitySet

In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzAvailabilitySet PowerShell command with an example.

Get-AzAvailabilitySet

This command helps you to retrieve the available Azure availability set inside a specified Resource Group.

Syntax

Below is the syntax of the Get-AzAvailabilitySet PowerShell command.

Get-AzAvailabilitySet
Get-AzAvailabilitySet
  [[-ResourceGroupName] <String>]

Let’s discuss a few examples of how to use the Get-AzAvailabilitySet PowerShell command.

Example-1:

The below PowerShell command will retrieve the list of available availability sets inside the “MyNewResGrp” Resource Group.

Get-AzAvailabilitySet -ResourceGroupName "MyNewResGrp"
Get-AzAvailabilitySet

Example-2:

Below PowerShell command will get you the details of the “DemoAvailabilitySet” availability set under the “MyNewResGrp” Resource Group.

Get-AzAvailabilitySet -ResourceGroupName "MyNewResGrp" -Name "DemoAvailabilitySet"

You may also like following the below articles

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzAvailabilitySet Azure PowerShell command with examples. Thanks for reading this article !!!