az aks connection
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 了解更多关于扩展的信息。
此命令组处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
用于管理 aks 连接的命令。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az aks connection create |
在 aks 和目标资源之间创建连接。 |
核心和扩展 | Preview |
| az aks connection create app-insights |
创建与 app-insights 的 aks 连接。 |
Core | Preview |
| az aks connection create appconfig |
创建与 appconfig 的 aks 连接。 |
Core | Preview |
| az aks connection create cognitiveservices |
创建与认知服务的 aks 连接。 |
Core | Preview |
| az aks connection create confluent-cloud |
创建与 confluent-cloud 的 aks 连接。 |
Core | Preview |
| az aks connection create cosmos-cassandra |
创建与 cosmos-cassandra 的 aks 连接。 |
Core | Preview |
| az aks connection create cosmos-gremlin |
创建与 cosmos-gremlin 的 aks 连接。 |
Core | Preview |
| az aks connection create cosmos-mongo |
创建与 cosmos-mongo 的 aks 连接。 |
Core | Preview |
| az aks connection create cosmos-sql |
创建与 cosmos-sql 的 aks 连接。 |
Core | Preview |
| az aks connection create cosmos-table |
创建与 cosmos-table 的 aks 连接。 |
Core | Preview |
| az aks connection create eventhub |
创建与 eventhub 的 aks 连接。 |
Core | Preview |
| az aks connection create keyvault |
创建与 keyvault 的 aks 连接。 |
Core | Preview |
| az aks connection create mongodb-atlas |
创建与 mongodb-atlas 的 aks 连接。 |
Core | Preview |
| az aks connection create mysql |
创建与 mysql 的 aks 连接。 |
Core | 预览和弃用 |
| az aks connection create mysql-flexible |
创建与 mysql 灵活连接的 aks 连接。 |
Core | Preview |
| az aks connection create mysql-flexible (serviceconnector-passwordless 扩展) |
创建与 mysql 灵活连接的 aks 连接。 |
Extension | GA |
| az aks connection create neon-postgres |
创建与 neon-postgres 的 aks 连接。 |
Core | Preview |
| az aks connection create postgres |
创建与 postgres 的 aks 连接。 |
Core | 预览和弃用 |
| az aks connection create postgres-flexible |
创建与 postgres 灵活连接的 aks 连接。 |
Core | Preview |
| az aks connection create postgres-flexible (serviceconnector-passwordless 扩展) |
创建与 postgres 灵活连接的 aks 连接。 |
Extension | GA |
| az aks connection create redis |
创建与 redis 的 aks 连接。 |
Core | Preview |
| az aks connection create redis-enterprise |
创建与 redis-enterprise 的 aks 连接。 |
Core | Preview |
| az aks connection create servicebus |
创建与 servicebus 的 aks 连接。 |
Core | Preview |
| az aks connection create signalr |
创建与信号器的 aks 连接。 |
Core | Preview |
| az aks connection create sql |
创建与 sql 的 aks 连接。 |
Core | Preview |
| az aks connection create sql (serviceconnector-passwordless 扩展) |
创建与 sql 的 aks 连接。 |
Extension | GA |
| az aks connection create storage-blob |
创建与 storage-blob 的 aks 连接。 |
Core | Preview |
| az aks connection create storage-file |
创建与存储文件的 aks 连接。 |
Core | Preview |
| az aks connection create storage-queue |
创建与存储队列的 aks 连接。 |
Core | Preview |
| az aks connection create storage-table |
创建与存储表的 aks 连接。 |
Core | Preview |
| az aks connection create webpubsub |
创建与 Webpubsub 的 aks 连接。 |
Core | Preview |
| az aks connection delete |
删除 aks 连接。 |
Core | Preview |
| az aks connection list |
列出 aks 的连接。 |
Core | Preview |
| az aks connection list-configuration |
列出 aks 连接的源配置。 |
Core | Preview |
| az aks connection list-support-types |
列出 aks 连接支持的客户端类型和身份验证类型。 |
Core | Preview |
| az aks connection show |
获取 aks 连接的详细信息。 |
Core | Preview |
| az aks connection update |
更新 aks 连接。 |
Core | Preview |
| az aks connection update app-insights |
将 aks 更新到 app-insights 连接。 |
Core | Preview |
| az aks connection update appconfig |
将 aks 更新为 appconfig 连接。 |
Core | Preview |
| az aks connection update cognitiveservices |
将 aks 更新为认知服务连接。 |
Core | Preview |
| az aks connection update confluent-cloud |
将 aks 更新为 confluent-cloud 连接。 |
Core | Preview |
| az aks connection update cosmos-cassandra |
将 aks 更新为 cosmos-cassandra 连接。 |
Core | Preview |
| az aks connection update cosmos-gremlin |
将 aks 更新为 cosmos-gremlin 连接。 |
Core | Preview |
| az aks connection update cosmos-mongo |
将 aks 更新为 cosmos-mongo 连接。 |
Core | Preview |
| az aks connection update cosmos-sql |
将 aks 更新为 cosmos-sql 连接。 |
Core | Preview |
| az aks connection update cosmos-table |
将 aks 更新为 cosmos-table 连接。 |
Core | Preview |
| az aks connection update eventhub |
将 aks 更新到 eventhub 连接。 |
Core | Preview |
| az aks connection update keyvault |
将 aks 更新为 keyvault 连接。 |
Core | Preview |
| az aks connection update mongodb-atlas |
将 aks 更新为 mongodb-atlas 连接。 |
Core | Preview |
| az aks connection update mysql |
将 aks 更新到 mysql 连接。 |
Core | 预览和弃用 |
| az aks connection update mysql-flexible |
将 aks 更新为 mysql 灵活连接。 |
Core | Preview |
| az aks connection update neon-postgres |
将 aks 更新为 neon-postgres 连接。 |
Core | Preview |
| az aks connection update postgres |
将 aks 更新为 postgres 连接。 |
Core | 预览和弃用 |
| az aks connection update postgres-flexible |
将 aks 更新为 postgres 灵活连接。 |
Core | Preview |
| az aks connection update redis |
将 aks 更新为 redis 连接。 |
Core | Preview |
| az aks connection update redis-enterprise |
将 aks 更新为 redis-enterprise 连接。 |
Core | Preview |
| az aks connection update servicebus |
将 aks 更新到 servicebus 连接。 |
Core | Preview |
| az aks connection update signalr |
将 aks 更新为信号器连接。 |
Core | Preview |
| az aks connection update sql |
将 aks 更新到 sql 连接。 |
Core | Preview |
| az aks connection update storage-blob |
将 ak 更新到 storage-blob 连接。 |
Core | Preview |
| az aks connection update storage-file |
将 ak 更新到存储文件连接。 |
Core | Preview |
| az aks connection update storage-queue |
将 ak 更新到存储队列连接。 |
Core | Preview |
| az aks connection update storage-table |
将 ak 更新到存储表连接。 |
Core | Preview |
| az aks connection update webpubsub |
将 aks 更新到 webpubsub 连接。 |
Core | Preview |
| az aks connection validate |
验证 aks 连接。 |
Core | Preview |
| az aks connection wait |
将 CLI 置于等待状态,直到满足连接条件。 |
Core | Preview |
az aks connection delete
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
删除 aks 连接。
az aks connection delete [--connection]
[--id]
[--name]
[--no-wait]
[--resource-group]
[--yes]
示例
以交互方式删除 aks 连接
az aks connection delete
按连接名称删除 aks 连接
az aks connection delete -g ClusterRG -n MyCluster --connection MyConnection
按连接 ID 删除 aks 连接
az aks connection delete --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
aks 连接的名称。
连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--name'、'--connection']。
托管群集的名称。 如果未指定“--id”,则为必需。没有。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
包含托管群集的资源组。 如果未指定“--id”,则为必需。没有。
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection list
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出 aks 的连接。
az aks connection list [--name]
[--resource-group]
[--source-id]
示例
以交互方式列出 aks 连接
az aks connection list
按源资源名称列出 aks 连接
az aks connection list -g ClusterRG -n MyCluster
按源资源 ID 列出 aks 连接
az aks connection list --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.ContainerService/managedClusters/{cluster}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
托管群集的名称。 如果未指定“--source-id”,则为必需。没有。
包含托管群集的资源组。 如果未指定“--source-id”,则为必需。没有。
aks 的资源 ID。 如果未指定 ['--resource-group', '--name'] ,则为必需。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection list-configuration
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出 aks 连接的源配置。
az aks connection list-configuration [--connection]
[--id]
[--name]
[--resource-group]
示例
以交互方式列出连接的源配置
az aks connection list-configuration
按连接名称列出连接的源配置
az aks connection list-configuration -g ClusterRG -n MyCluster --connection MyConnection
按连接 ID 列出连接的源配置
az aks connection list-configuration --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
aks 连接的名称。
连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--name'、'--connection']。
托管群集的名称。 如果未指定“--id”,则为必需。没有。
包含托管群集的资源组。 如果未指定“--id”,则为必需。没有。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection list-support-types
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出 aks 连接支持的客户端类型和身份验证类型。
az aks connection list-support-types [--target-type {app-insights, appconfig, cognitiveservices, confluent-cloud, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, keyvault, mongodb-atlas, mysql, mysql-flexible, neon-postgres, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub}]
示例
列出支持的所有 aks 目标资源类型和身份验证类型
az aks connection list-support-types -o table
列出特定目标资源类型支持的身份验证类型
az aks connection list-support-types --target-type storage-blob -o table
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
目标资源类型。
| 属性 | 值 |
|---|---|
| 接受的值: | app-insights, appconfig, cognitiveservices, confluent-cloud, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, keyvault, mongodb-atlas, mysql, mysql-flexible, neon-postgres, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection show
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
获取 aks 连接的详细信息。
az aks connection show [--connection]
[--id]
[--name]
[--resource-group]
示例
以交互方式获取连接
az aks connection show
按连接名称获取连接
az aks connection show -g ClusterRG -n MyCluster --connection MyConnection
按连接 ID 获取连接
az aks connection show --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
aks 连接的名称。
连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--name'、'--connection']。
托管群集的名称。 如果未指定“--id”,则为必需。没有。
包含托管群集的资源组。 如果未指定“--id”,则为必需。没有。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection validate
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
验证 aks 连接。
az aks connection validate [--connection]
[--id]
[--name]
[--resource-group]
示例
以交互方式验证连接
az aks connection validate
按连接名称验证连接
az aks connection validate -g ClusterRG -n MyCluster --connection MyConnection
按连接 ID 验证连接
az aks connection validate --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
aks 连接的名称。
连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--name'、'--connection']。
托管群集的名称。 如果未指定“--id”,则为必需。没有。
包含托管群集的资源组。 如果未指定“--id”,则为必需。没有。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks connection wait
命令组“aks 连接”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
将 CLI 置于等待状态,直到满足连接条件。
az aks connection wait [--connection]
[--created]
[--custom]
[--deleted]
[--exists]
[--id]
[--interval]
[--name]
[--resource-group]
[--timeout]
[--updated]
示例
等待连接成功创建。
az aks connection wait --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker} --created
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
aks 连接的名称。
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--name'、'--connection']。
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
托管群集的名称。 如果未指定“--id”,则为必需。没有。
包含托管群集的资源组。 如果未指定“--id”,则为必需。没有。
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |