< Back

New-AzureRmAvailabilitySet

Tue Jan 29, 2019 9:38 pm

NAME New-AzureRmAvailabilitySet



SYNOPSIS

Creates an Azure availability set.





SYNTAX

New-AzureRmAvailabilitySet [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [[-PlatformUpdateDomainCount] <Int32>]

[[-PlatformFaultDomainCount] <Int32>] [[-Sku] <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-Managed] [<CommonParameters>]





DESCRIPTION

The New-AzureRmAvailabilitySet cmdlet creates an Azure availability set.





PARAMETERS

-AsJob [<SwitchParameter>]

Run cmdlet in the background and return a Job to track progress.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-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



-Location <String>

Specifies the location for the availability set.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Managed [<SwitchParameter>]

Managed Availability Set



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

Specifies a name for the availability set.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PlatformFaultDomainCount <Int32>

Specifies the platform fault domain count.



Required? false

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PlatformUpdateDomainCount <Int32>

Specifies the platform update domain count.



Required? false

Position? 3

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



-Sku <String>

The Name of Sku



Required? false

Position? 5

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: Create an availability set



PS C:\\> New-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US"



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







RELATED LINKS

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

Get-AzureRmAvailabilitySet

Remove-AzureRmAvailabilitySet