New-HostGroup
SYNOPSIS
Creates a new PowerStore host group.
SYNTAX
ByHostName (Default)
New-HostGroup [-Cluster] <Cluster> [-Name] <String> -HostName <String[]> [-Description <String>]
[-Confirm] [-WhatIf] [<CommonParameters>]
ByHostId
New-HostGroup [-Cluster] <Cluster> [-Name] <String> -HostId <String[]> [-Description <String>]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Creates a new PowerStore host group. Creating empty host group with no hosts is not allowed. Hosts can be specified using host names or host Ids.
EXAMPLES
Example 1
PS C:\> New-HostGroup -Cluster $cluster -Name name1 -HostName host1,host2
Where $cluster is a PowerStore cluster instance. Creates a new host group containing hosts with names host1 and host2.
Example 2
PS C:\> New-HostGroup -Cluster $cluster -Name name1 -HostId uudi1
Where $cluster is a PowerStore cluster instance. Creates a new host group containing host with Id uuid1.
PARAMETERS
-Cluster
PowerStore cluster instance.
Type: Cluster
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
Host group name.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HostName
List of host names.
Type: String[]
Parameter Sets: ByHostName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-HostId
List of host Ids.
Type: String[]
Parameter Sets: ByHostId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Description
Description.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.