Remove-AksEdgeNode

从现有群集中删除本地节点。

语法

Remove-AksEdgeNode [-NodeType] <String> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

说明

从现有群集中删除本地节点。 仅当 Linux 和 Windows 节点部署在同一台计算机中时,才支持此函数。 若要删除部署的单节点,请使用 Remove-AksEdgeDeployment。

示例

提示确认常规删除,并在需要时强制删除

Remove-AksEdgeNode -NodeType Linux

跳过这两个确认

Remove-AksEdgeNode -Force -NodeType Linux

提示确认常规删除,并在需要时强制删除

Remove-AksEdgeNode -Force -Confirm -NodeType Linux

跳过常规删除的确认,但如果需要强制删除,则会提示确认

Remove-AksEdgeNode -Confirm:$false -NodeType Linux

参数

-NodeType

此参数指示是“Linux”节点还是“Windows”节点。

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Force

此参数使用户无需用户交互即可删除节点。 与“确认”开关结合使用时,即使存在错误,也可以通过或不与用户交互强制删除节点。 如果指定了 Force,除非还指定了“确认”,否则不会要求用户进行确认。 否则,系统会要求用户确认节点删除,除非“确认”设置为 false,并再次询问是否需要强制删除。

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

提示你在运行 cmdlet 之前进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

后续步骤

AksEdge PowerShell 参考