你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az sf cluster node

管理群集的节点实例。

命令

名称 说明 类型 状态
az sf cluster node add

将节点添加到群集中的节点类型。

核心 GA
az sf cluster node remove

从群集中的节点类型中删除节点。

核心 GA

az sf cluster node add

将节点添加到群集中的节点类型。

az sf cluster node add --cluster-name
                       --node-type
                       --nodes-to-add
                       --resource-group

示例

将 2 个“nt1”节点添加到群集。

az sf cluster node add -g group-name -c cluster1 --number-of-nodes-to-add 2 --node-type 'nt1'

必需参数

--cluster-name -c

指定群集的名称(如果未指定),则与资源组名称相同。

--node-type

节点类型名称。

--nodes-to-add --number-of-nodes-to-add

要添加的节点数。

--resource-group -g

指定资源组名称。 可以使用 az configure --defaults group=<name> 配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az sf cluster node remove

从群集中的节点类型中删除节点。

az sf cluster node remove --cluster-name
                          --node-type
                          --nodes-to-remove
                          --resource-group

示例

从群集中删除 2 个“nt1”节点。

az sf cluster node remove -g group-name -c cluster1 --node-type 'nt1' --number-of-nodes-to-remove 2

必需参数

--cluster-name -c

指定群集的名称(如果未指定),则与资源组名称相同。

--node-type

节点类型名称。

--nodes-to-remove --number-of-nodes-to-remove

要删除的节点数。

--resource-group -g

指定资源组名称。 可以使用 az configure --defaults group=<name> 配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。