Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzAvailabilitySet

Creates an Azure availability set.

Syntax

Default (Default)

New-AzAvailabilitySet
 [-ResourceGroupName] <String>
 [-Name] <String>
 [-Location] <String>
 [[-PlatformUpdateDomainCount] <Int32>]
 [[-PlatformFaultDomainCount] <Int32>]
 [[-Sku] <String>]
 [-ProximityPlacementGroupId <String>]
 [-Tag <Hashtable>]
 [-AsJob]
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

Description

The New-AzAvailabilitySet cmdlet creates an Azure availability set.

Examples

Example 1: Create an availability set

New-AzAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US"

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

Parameters

-AsJob

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-Location

Specifies the location for the availability set.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

Specifies a name for the availability set.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ResourceName, AvailabilitySetName

Parameter sets

-PlatformFaultDomainCount

Specifies the platform fault domain count.

Parameter properties

Type:

Nullable<T>[Int32]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PlatformUpdateDomainCount

Specifies the platform update domain count.

Parameter properties

Type:

Nullable<T>[Int32]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ProximityPlacementGroupId

The resource id of the Proximity Placement Group to use with this availability set.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

Specifies the name of a resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Sku

The Name of Sku. The acceptable values for this parameter are:

  • Aligned: For managed disks
  • Classic: For unmanaged disks

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Tag

Key-value pairs in the form of a hash table.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Nullable<T>

Outputs

PSAvailabilitySet

Related Links


Feedback

Was this page helpful?