Get-AzureAvailabilitySet
Get-AzureAvailabilitySet
Gets Azure availability sets in a resource group.
Syntax
Parameter Set: Default
Get-AzureAvailabilitySet [-ResourceGroupName] <String> [[-Name] <String> ] [-Profile <AzureProfile> ] [ <CommonParameters>]
Detailed Description
The Get-AzureAvailabilitySet cmdlet gets Azure availability sets in a resource group. Specify the name of a specific availability set to get.
Parameters
-Name<String>
Specifies the name of an availability set to get.
Aliases |
ResourceName,AvailabilitySetName |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Profile<AzureProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ResourceGroupName<String>
Specifies the name of a resource group.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get a specific availability set
This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11.
Get-AzureAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03"
Example 2: Get all availability sets
This command gets all the availability sets in the resource group named ResourceGroup11.
Get-AzureAvailabilitySet -ResourceGroupName "ResourceGroup11"