In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzAvailabilitySet PowerShell command with an example.
Table of Contents
This command helps you to retrieve the available Azure availability set inside a specified Resource Group.
Below is the syntax of the Get-AzAvailabilitySet PowerShell command.
Get-AzAvailabilitySet [[-ResourceGroupName] <String>]
Let’s discuss a few examples of how to use the Get-AzAvailabilitySet PowerShell command.
The below PowerShell command will retrieve the list of available availability sets inside the “MyNewResGrp” Resource Group.
Get-AzAvailabilitySet -ResourceGroupName "MyNewResGrp"
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
- The ‘Get-AzResourceGroup’ command was found in the module ‘Az.Resources’
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 !!!