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

az dnc controller

Note

This reference is part of the dnc extension for the Azure CLI (version 2.51.0 or higher). 该扩展将在首次运行 az dnc controller 命令时自动安装。 Learn more about extensions.

命令组“az dnc”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

使用 dnc 管理控制器。

命令

名称 说明 类型 Status
az dnc controller create

创建 dnc 控制器。

Extension Preview
az dnc controller delete

删除 DNC 控制器。

Extension Preview
az dnc controller show

获取有关指定 dnc 控制器的详细信息。

Extension Preview
az dnc controller wait

将 CLI 置于等待状态,直到满足条件。

Extension Preview

az dnc controller create

预览

命令组“az dnc controller”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

创建 dnc 控制器。

az dnc controller create --name --resource-name
                         --resource-group
                         [--location]
                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                         [--purpose {prod, test}]
                         [--tags]

示例

添加控制器

az dnc controller create --location "West US" --resource-group "TestRG" --resource-name "testcontroller"

创建测试控制器

az dnc controller create --location "West US" --resource-group "TestRG" --resource-name "testcontroller" --purpose "test"

必需参数

--name --resource-name -n

资源的名称。 它必须至少为 3 个字符,最多为 63 个字符。

--resource-group -g

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

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--location -l

资源的位置。

属性
Parameter group: Parameters Arguments
--no-wait

不等待长时间运行的操作完成。

属性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--purpose
预览

dnc 控制器资源的用途。

属性
Parameter group: Properties Arguments
默认值: prod
接受的值: prod, test
--tags

资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
Parameter group: Parameters Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

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

属性
默认值: False

az dnc controller delete

预览

命令组“az dnc controller”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

删除 DNC 控制器。

az dnc controller delete [--ids]
                         [--name --resource-name]
                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                         [--resource-group]
                         [--subscription]
                         [--yes]

示例

删除控制器

az dnc controller delete --resource-group "TestRG" --resource-name "testcontroller"

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name --resource-name -n

资源的名称。 它必须至少为 3 个字符,最多为 63 个字符。

属性
Parameter group: Resource Id Arguments
--no-wait

不等待长时间运行的操作完成。

属性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--subscription

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

属性
Parameter group: Resource Id Arguments
--yes -y

不要提示确认。

属性
默认值: False
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

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

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

--verbose

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

属性
默认值: False

az dnc controller show

预览

命令组“az dnc controller”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

获取有关指定 dnc 控制器的详细信息。

az dnc controller show [--ids]
                       [--name --resource-name]
                       [--resource-group]
                       [--subscription]

示例

获取控制器的详细信息

az dnc controller show --resource-group "TestRG" --resource-name "testcontroller"

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name --resource-name -n

资源的名称。 它必须至少为 3 个字符,最多为 63 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--subscription

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

属性
Parameter group: Resource Id Arguments
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

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

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

--verbose

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

属性
默认值: False

az dnc controller wait

预览

命令组“az dnc controller”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

将 CLI 置于等待状态,直到满足条件。

az dnc controller wait [--created]
                       [--custom]
                       [--deleted]
                       [--exists]
                       [--ids]
                       [--interval]
                       [--name --resource-name]
                       [--resource-group]
                       [--subscription]
                       [--timeout]
                       [--updated]

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--created

等待在“Succeeded”中使用“provisioningState”创建。

属性
Parameter group: Wait Condition Arguments
默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

属性
Parameter group: Wait Condition Arguments
--deleted

等到删除为止。

属性
Parameter group: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性
Parameter group: Wait Condition Arguments
默认值: False
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--interval

轮询间隔(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 30
--name --resource-name -n

资源的名称。 它必须至少为 3 个字符,最多为 63 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

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

属性
Parameter group: Resource Id Arguments
--subscription

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

属性
Parameter group: Resource Id Arguments
--timeout

最大等待(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
Parameter group: Wait Condition Arguments
默认值: False
全局参数
--debug

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

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

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

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

--verbose

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

属性
默认值: False