Add-ClusterGroup

Add-ClusterGroup

Adds an empty resource group to the failover cluster configuration, in preparation for adding clustered resources to the group.

Sintaxis

Parameter Set: InputObject
Add-ClusterGroup [-Name] <StringCollection> [[-GroupType] <GroupType> {AvailableStorage | Cluster | ClusterSharedVolume | ClusterStoragePool | DhcpServer | Dtc | FileServer | GenericApplication | GenericScript | GenericService | IScsiNameService | IScsiTarget | Msmq | ScaleoutFileServer | StandAloneDfs | TaskScheduler | Temporary | TsSessionBroker | Unknown | VirtualMachine | VMReplicaBroker | Wins} ] [-Cluster <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]

Descripción detallada

The Add-ClusterGroup cmdlet adds an empty resource group to the failover cluster configuration, in preparation for adding clustered resources to the group. A resource group, or a clustered role, is the unit of failover. During failover, all resources in the resource group move together.

Parámetros

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-GroupType<GroupType>

Specifies the type of group to add to the failover cluster configuration.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PSObject>

Specifies the cluster on which to create the resource group.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-Name<StringCollection>

Specifies the name of the resource group to add.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.FailoverClusters.PowerShell.Cluster

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterGroup

Ejemplos

EXAMPLE 1

This example adds an empty resource group called Group1 to the failover cluster.

PS C:\> Add-ClusterGroup –Name Group1

Temas relacionados

Get-ClusterGroup

Move-ClusterGroup

Remove-ClusterGroup

Start-ClusterGroup

Stop-ClusterGroup