Share via


Remove-HpcAzureNode

Removes one or more Azure nodes from an HPC cluster.

Syntax

Name

Remove-HpcAzureNode
    [-Name] <String[]>
    [-Force <Boolean>]
    [-Async <Boolean>]
    [-Comment <String>]
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

Node

Remove-HpcAzureNode
    -Node <HpcNode[]>
    [-Force <Boolean>]
    [-Async <Boolean>]
    [-Comment <String>]
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

Description

The Remove-HpcAzureNode cmdlet removes one or more Azure nodes from an HPC cluster. When you remove the nodes from the cluster, you also remove the corresponding role instances in Azure.

Examples

Example 1: Remove nodes by group name

PS C:\>Get-HpcNode -GroupName "AzureNodes" | Remove-HpcAzureNode -Force $True

This command gets an HpcNode object for all the Azure nodes that are in the cluster, and then removes the nodes while forcing any online Azure nodes to be offline as part of the removal process.

Parameters

-Async

Indicates whether the cmdlet should return immediately without waiting for the node removal to take effect.

A nonzero or $True value specifies that the cmdlet should return immediately without waiting for the node removal to take effect. A 0 or $False value specifies that the cmdlet should wait for the node removal to take effect before returning.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ClusterConnectionString

Specifies an array of cluster connection strings for the cluster to which you want to add the device drivers. The value format is host1,host2,host3. If you do not specify the ClusterConnectionString parameter, this cmdlet uses the connection string on the head node that the CCP_CONNECTIONSTRING environment variable specifies. To set this environment variable, run the following cmdlet: Set-Content Env: CCP_CONNECTIONSTRING \<head_node_name\>.

This parameter was introduced in HPC Pack 2016.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Comment

Specifies the reason that the nodes were removed.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Force

Indicates whether the online nodes in the specified nodes should be forced offline as part of the removal process, or should just be drained as part of the removal process.

A $True or nonzero value indicates that the online nodes should be forced offline as part of the removal process. A $False or 0 value indicates that the online nodes should not be forced offline as part of the removal process, but should just be drained instead.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies an array of names, separated by commas, of the nodes that you want to remove. You cannot specify both the Name and Node parameters.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Name
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Node

Specifies an array of HpcNode objects, separated by commas, for the nodes that you want to remove. You cannot specify both the Node and Name parameters.

Parameter properties

Type:

HpcNode[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Node
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Scheduler

Specifies the host name or IP address of the head node for the cluster that includes the Azure nodes that you want to stop. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:

Set-Content Env:CCP_SCHEDULER \<head_node_name\>

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

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

HpcNode

Outputs

None

Notes

  • Azure nodes that are started automatically by an availability policy that is configured in the node template cannot be removed by this cmdlet. You can use the Remove-HpcNodeSet cmdlet instead.
  • You must be a cluster administrator to run this cmdlet successfully.
  • This cmdlet was introduced in HPC Pack 2012 R2. It is not supported in previous versions.