< Back

Get-AzureRmAvailabilitySet

Tue Jan 29, 2019 9:37 pm

NAME Get-AzureRmAvailabilitySet



SYNOPSIS

Gets Azure availability sets in a resource group.





SYNTAX

Get-AzureRmAvailabilitySet [-ResourceGroupName] <String> [[-Name] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmAvailabilitySet cmdlet gets Azure availability sets in a resource group. You can specify the name of a specific availability set to

get.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of an availability set that this cmdlet gets.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of a resource group.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet







NOTES









Example 1: Get a specific availability set



PS C:\\> Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03"



This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11.





Example 2: Get all availability sets



PS C:\\> Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11"



This command gets all the availability sets in the resource group named ResourceGroup11.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... abilityset

New-AzureRmAvailabilitySet

Remove-AzureRmAvailabilitySet