Remove-AksEdgeNode
Removes a local node from an existing cluster.
Remove-AksEdgeNode [-NodeType] <String> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Removes a local node from an existing cluster. This function is supported only when Linux and Windows nodes are deployed in the same machine. To remove the single node deployed, use Remove-AksEdgeDeployment.
Prompt confirmation for both general removal, and force removal if needed
Remove-AksEdgeNode -NodeType Linux
Skip both confirmation
Remove-AksEdgeNode -Force -NodeType Linux
Prompt confirmation for both general removal, and force removal if needed
Remove-AksEdgeNode -Force -Confirm -NodeType Linux
Skip confirmation for general removal, but will prompt confirmation if force removal is required
Remove-AksEdgeNode -Confirm:$false -NodeType Linux
This parameter indicates whether the 'Linux' node or the 'Windows' node.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This parameter enables user to remove node without user interaction. In combination with the Confirm switch, a node can be force removed with or without user interaction even if there are errors. If Force is specified, user will not be asked for confirmation unless Confirm is also specified. Otherwise, user will be asked for confirmation for node removal unless Confirm is set to false, and asked again if force removal is required.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.