In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzAvailabilitySet PowerShell command with an example.
Table of Contents
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"

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
- Set-AzResourceGroup
- Export-AzResourceGroup
- The ‘Get-AzResourceGroup’ command was found in the module ‘Az.Resources’
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 !!!