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

az workload-manager workload-space runtime-link

备注

此参考是Azure CLI(版本 2.75.0 或更高版本)的工作负荷管理器扩展的一部分。 该扩展将在首次运行 az workload-manager workload-space runtime-link 命令时自动安装。 了解更多关于扩展程序的信息。

管理运行时链接。

命令

名称 说明 类型 Status
az workload-manager workload-space runtime-link create

创建运行时链接。

Extension GA
az workload-manager workload-space runtime-link delete

删除运行时链接而不删除其运行时绑定。

Extension GA
az workload-manager workload-space runtime-link list

列出工作负荷空间中的运行时链接。

Extension GA
az workload-manager workload-space runtime-link show

获取运行时链接。

Extension GA
az workload-manager workload-space runtime-link update

更新可变运行时链接属性。

Extension GA
az workload-manager workload-space runtime-link wait

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

Extension GA

创建运行时链接。

az workload-manager workload-space runtime-link create --link-name --name
                                                       --resource-group
                                                       --space-name
                                                       [--acquire-policy-token]
                                                       [--capacity-profile]
                                                       [--change-reference]
                                                       [--execution-binding --execution-binding-resource-id]
                                                       [--integration-profile]
                                                       [--location]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--orchestrator-binding --orchestrator-binding-resource-id]
                                                       [--subnet-resource-id]
                                                       [--tags]

创建仅限 Kubernetes 的运行时链接

az workload-manager workload-space runtime-link create --resource-group rg-workload --space-name managed-agents-prod --link-name kubernetes-only --location eastus2 --orchestrator-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/customer-aks

在 Kubernetes 和无服务器容器之间创建运行时链接

az workload-manager workload-space runtime-link create --resource-group rg-workload --space-name managed-agents-prod --link-name default --location eastus2 --orchestrator-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/kubernetes-default --execution-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/serverless-default --capacity-profile "{minimum-nodes:1,maximum-nodes:100}"
--link-name --name -n

RuntimeLink 的名称。

--resource-group -g

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

--space-name

WorkloadSpace 的名称。

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--capacity-profile

运行时组合的可变容量策略。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性 值
参数组: Properties Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--execution-binding --execution-binding-resource-id

可选的兄弟运行时绑定,提供执行。

属性 值
参数组: Properties Arguments
--integration-profile

提供者集成身份配置。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性 值
参数组: Properties Arguments
--location -l

未指定资源所在的地理位置,将使用资源组的位置。

属性 值
参数组: Resource Arguments
--no-wait

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

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

提供编排的兄弟运行时绑定。

属性 值
参数组: Properties Arguments
--subnet-resource-id

运行时链接使用的子网的资源 ID。

属性 值
参数组: Properties Arguments
--tags

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

属性 值
参数组: Resource Arguments
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

属性 值
默认值: 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 workload-manager workload-space runtime-link delete [--acquire-policy-token]
                                                       [--change-reference]
                                                       [--ids]
                                                       [--link-name --name]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--resource-group]
                                                       [--space-name]
                                                       [--subscription]
                                                       [--yes]

删除运行时链接

az workload-manager workload-space runtime-link delete --resource-group rg-workload --space-name managed-agents-prod --link-name default

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--ids

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

属性 值
参数组: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名称。

属性 值
参数组: Resource Id Arguments
--no-wait

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

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

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

属性 值
参数组: Resource Id Arguments
--space-name

WorkloadSpace 的名称。

属性 值
参数组: Resource Id Arguments
--subscription

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

属性 值
参数组: Resource Id Arguments
--yes -y

不请求确认。

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

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

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

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

--verbose

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

属性 值
默认值: False

列出工作负荷空间中的运行时链接。

az workload-manager workload-space runtime-link list --resource-group
                                                     --space-name
                                                     [--max-items]
                                                     [--next-token]

列出工作负荷空间中的运行时链接

az workload-manager workload-space runtime-link list --resource-group rg-workload --space-name managed-agents-prod
--resource-group -g

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

--space-name

WorkloadSpace 的名称。

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

属性 值
参数组: Pagination Arguments
--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

属性 值
参数组: Pagination Arguments
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

属性 值
默认值: 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 workload-manager workload-space runtime-link show [--ids]
                                                     [--link-name --name]
                                                     [--resource-group]
                                                     [--space-name]
                                                     [--subscription]

获取运行时链接

az workload-manager workload-space runtime-link show --resource-group rg-workload --space-name managed-agents-prod --link-name default

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--ids

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

属性 值
参数组: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名称。

属性 值
参数组: Resource Id Arguments
--resource-group -g

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

属性 值
参数组: Resource Id Arguments
--space-name

WorkloadSpace 的名称。

属性 值
参数组: Resource Id Arguments
--subscription

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

属性 值
参数组: Resource Id Arguments
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

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

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

--verbose

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

属性 值
默认值: False

更新可变运行时链接属性。

az workload-manager workload-space runtime-link update [--acquire-policy-token]
                                                       [--capacity-profile]
                                                       [--change-reference]
                                                       [--ids]
                                                       [--link-name --name]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--resource-group]
                                                       [--space-name]
                                                       [--subscription]
                                                       [--tags]

更新运行时链接容量

az workload-manager workload-space runtime-link update --resource-group rg-workload --space-name managed-agents-prod --link-name default --capacity-profile "{minimum-nodes:2,maximum-nodes:150}"

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--capacity-profile

运行时组合的可变容量策略。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性 值
参数组: Properties Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--ids

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

属性 值
参数组: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名称。

属性 值
参数组: Resource Id Arguments
--no-wait

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

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

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

属性 值
参数组: Resource Id Arguments
--space-name

WorkloadSpace 的名称。

属性 值
参数组: Resource Id Arguments
--subscription

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

属性 值
参数组: Resource Id Arguments
--tags

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

属性 值
参数组: Properties Arguments
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

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

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

--verbose

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

属性 值
默认值: False

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

az workload-manager workload-space runtime-link wait [--acquire-policy-token]
                                                     [--change-reference]
                                                     [--created]
                                                     [--custom]
                                                     [--deleted]
                                                     [--exists]
                                                     [--ids]
                                                     [--interval]
                                                     [--link-name --name]
                                                     [--resource-group]
                                                     [--space-name]
                                                     [--subscription]
                                                     [--timeout]
                                                     [--updated]

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--created

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

属性 值
参数组: Wait Condition Arguments
默认值: False
--custom

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

属性 值
参数组: Wait Condition Arguments
--deleted

等到删除为止。

属性 值
参数组: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性 值
参数组: Wait Condition Arguments
默认值: False
--ids

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

属性 值
参数组: Resource Id Arguments
--interval

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

属性 值
参数组: Wait Condition Arguments
默认值: 30
--link-name --name -n

RuntimeLink 的名称。

属性 值
参数组: Resource Id Arguments
--resource-group -g

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

属性 值
参数组: Resource Id Arguments
--space-name

WorkloadSpace 的名称。

属性 值
参数组: Resource Id Arguments
--subscription

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

属性 值
参数组: Resource Id Arguments
--timeout

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

属性 值
参数组: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

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

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

输出格式。

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

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

--verbose

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

属性 值
默认值: False