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

az aks mesh

Note

此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 了解更多关于扩展的信息。

用于管理 Azure 服务网格的命令。

在给定群集中管理 Azure 服务网格的一组命令。

命令

名称 说明 类型 Status
az aks mesh disable

禁用 Azure 服务网格。

Core GA
az aks mesh disable (aks-preview 扩展)

禁用 Azure 服务网格。

Extension GA
az aks mesh disable-egress-gateway

禁用 Azure 服务网格出口网关。

Extension GA
az aks mesh disable-ingress-gateway

禁用 Azure 服务网格入口网关。

Core GA
az aks mesh disable-ingress-gateway (aks-preview 扩展)

禁用 Azure 服务网格入口网关。

Extension GA
az aks mesh disable-istio-cni

禁用 Azure 服务网格代理重定向机制的 Istio CNI 链接。

Extension GA
az aks mesh enable

启用 Azure 服务网格。

Core GA
az aks mesh enable (aks-preview 扩展)

启用 Azure 服务网格。

Extension GA
az aks mesh enable-egress-gateway

启用 Azure 服务网格出口网关。

Extension GA
az aks mesh enable-ingress-gateway

启用 Azure 服务网格入口网关。

Core GA
az aks mesh enable-ingress-gateway (aks-preview 扩展)

启用 Azure 服务网格入口网关。

Extension GA
az aks mesh enable-istio-cni

为 Azure 服务网格代理重定向机制启用 Istio CNI 链接。

Extension GA
az aks mesh get-revisions

发现可用的 Azure 服务网格修订版及其兼容性。

Core GA
az aks mesh get-revisions (aks-preview 扩展)

发现可用的 Azure 服务网格修订版及其兼容性。

Extension GA
az aks mesh get-upgrades

发现可用的 Azure 服务网格升级。

Core GA
az aks mesh get-upgrades (aks-preview 扩展)

发现可用的 Azure 服务网格升级。

Extension GA
az aks mesh upgrade

用于管理 Azure 服务网格升级的命令。

核心和扩展 GA
az aks mesh upgrade complete

完成 Azure 服务网格升级。

Core GA
az aks mesh upgrade complete (aks-preview 扩展)

完成 Azure 服务网格升级。

Extension GA
az aks mesh upgrade rollback

回滚 Azure 服务网格升级。

Core GA
az aks mesh upgrade rollback (aks-preview 扩展)

回滚 Azure 服务网格升级。

Extension GA
az aks mesh upgrade start

启动 Azure 服务网格升级。

Core GA
az aks mesh upgrade start (aks-preview 扩展)

启动 Azure 服务网格升级。

Extension GA

az aks mesh disable

禁用 Azure 服务网格。

此命令在给定群集中禁用 Azure 服务网格。

az aks mesh disable --name
                    --resource-group
                    [--no-wait]
                    [--yes]

必需参数

--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
--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/

--subscription

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

--verbose

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

属性
默认值: False

az aks mesh disable (aks-preview 扩展)

禁用 Azure 服务网格。

此命令在给定群集中禁用 Azure 服务网格。

az aks mesh disable --name
                    --resource-group
                    [--no-wait]
                    [--yes]

必需参数

--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
--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/

--subscription

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

--verbose

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

属性
默认值: False

az aks mesh disable-egress-gateway

禁用 Azure 服务网格出口网关。

此命令禁用给定群集中的 Azure 服务网格出口网关。

az aks mesh disable-egress-gateway --istio-eg-gtw-name --istio-egressgateway-name
                                   --name
                                   --resource-group
                                   [--istio-eg-gtw-ns --istio-egressgateway-namespace]
                                   [--no-wait]
                                   [--yes]

示例

禁用 Istio 出口网关。

az aks mesh disable-egress-gateway --resource-group MyResourceGroup --name MyManagedCluster --istio-egressgateway-name my-istio-egress-1 --istio-egressgateway-namespace my-namespace-1

必需参数

--istio-eg-gtw-name --istio-egressgateway-name

指定 Istio 出口网关的名称。

此必需字段指定 Istio 出口网关的名称。 必须介于 1 到 253 个字符之间,必须包含小写字母数字字符、“-”或“.”,并且必须以字母数字字符开头和结尾。

--name -n

托管群集的名称。

--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.

--istio-eg-gtw-ns --istio-egressgateway-namespace

指定 Istio 出口网关的命名空间。

此可选字段指定 Istio 出口网关的命名空间。 如果未指定,则默认为“aks-istio-egress”。

属性
默认值: aks-istio-egress
--no-wait

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

属性
默认值: False
--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/

--subscription

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

--verbose

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

属性
默认值: False

az aks mesh disable-ingress-gateway

禁用 Azure 服务网格入口网关。

此命令禁用给定群集中的 Azure 服务网格入口网关。

az aks mesh disable-ingress-gateway --ingress-gateway-type {External, Internal}
                                    --name
                                    --resource-group
                                    [--no-wait]
                                    [--yes]

示例

禁用内部入口网关。

az aks mesh disable-ingress-gateway --resource-group MyResourceGroup --name MyManagedCluster --ingress-gateway-type Internal

必需参数

--ingress-gateway-type

指定入口网关的类型。

允许的值是“外部”,由具有外部 IP 地址的负载均衡器提供支持,“内部”由具有内部 IP 地址的负载均衡器提供支持。

属性
接受的值: External, Internal
--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
--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/

--subscription

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

--verbose

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

属性
默认值: False

az aks mesh disable-ingress-gateway (aks-preview 扩展)

禁用 Azure 服务网格入口网关。

此命令禁用给定群集中的 Azure 服务网格入口网关。

az aks mesh disable-ingress-gateway --ingress-gateway-type {External, Internal}
                                    --name
                                    --resource-group
                                    [--no-wait]
                                    [--yes]

示例

禁用内部入口网关。

az aks mesh disable-ingress-gateway --resource-group MyResourceGroup --name MyManagedCluster --ingress-gateway-type Internal

必需参数

--ingress-gateway-type

指定入口网关的类型。

允许的值是“外部”,由具有外部 IP 地址的负载均衡器提供支持,“内部”由具有内部 IP 地址的负载均衡器提供支持。

属性
接受的值: External, Internal
--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
--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/

--subscription

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

--verbose

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

属性
默认值: False

az aks mesh disable-istio-cni

禁用 Azure 服务网格代理重定向机制的 Istio CNI 链接。

此命令禁用 Istio CNI 链接,并还原为使用 init 容器作为 Azure 服务网格的代理重定向机制。 这是使用 privileged init 容器设置 iptables 规则的传统方法。

az aks mesh disable-istio-cni --name
                              --resource-group
                              [--no-wait]

示例

禁用 Azure 服务网格的 Istio CNI 链接。

az aks mesh disable-istio-cni --resource-group MyResourceGroup --name MyManagedCluster

必需参数

--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
全局参数
--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 aks mesh enable

启用 Azure 服务网格。

此命令在给定群集中启用 Azure 服务网格。

az aks mesh enable --name
                   --resource-group
                   [--ca-cert-object-name]
                   [--ca-key-object-name]
                   [--cert-chain-object-name]
                   [--key-vault-id]
                   [--no-wait]
                   [--revision]
                   [--root-cert-object-name]

示例

使用自签名 CA 启用 Azure 服务网格。

az aks mesh enable --resource-group MyResourceGroup --name MyManagedCluster

使用插件 CA 启用 Azure 服务网格。

az aks mesh enable --resource-group MyResourceGroup --name MyManagedCluster --key-vault-id /subscriptions/00000/resourceGroups/foo/providers/Microsoft.KeyVault/vaults/foo --ca-cert-object-name my-ca-cert --ca-key-object-name my-ca-key --cert-chain-object-name my-cert-chain --root-cert-object-name my-root-cert

必需参数

--name -n

托管群集的名称。

--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.

--ca-cert-object-name

Azure Keyvault 中的中间证书对象名称。

--ca-key-object-name

Azure Keyvault 中的中间密钥对象名称。

--cert-chain-object-name

Azure Keyvault 中的证书链对象名称。

--key-vault-id

包含插件 CA 信息的 Azure Keyvault ID。

--no-wait

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

属性
默认值: False
--revision

要安装的 Azure 服务网格修订版。

--root-cert-object-name

Azure Keyvault 中的根证书对象名称。

全局参数
--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 aks mesh enable (aks-preview 扩展)

启用 Azure 服务网格。

此命令在给定群集中启用 Azure 服务网格。

az aks mesh enable --name
                   --resource-group
                   [--ca-cert-object-name]
                   [--ca-key-object-name]
                   [--cert-chain-object-name]
                   [--key-vault-id]
                   [--no-wait]
                   [--revision]
                   [--root-cert-object-name]

示例

使用自签名 CA 启用 Azure 服务网格。

az aks mesh enable --resource-group MyResourceGroup --name MyManagedCluster

使用插件 CA 启用 Azure 服务网格。

az aks mesh enable --resource-group MyResourceGroup --name MyManagedCluster --key-vault-id /subscriptions/8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8/resourceGroups/foo/providers/Microsoft.KeyVault/vaults/foo --ca-cert-object-name my-ca-cert --ca-key-object-name my-ca-key --cert-chain-object-name my-cert-chain --root-cert-object-name my-root-cert

必需参数

--name -n

托管群集的名称。

--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.

--ca-cert-object-name

Azure Keyvault 中的中间证书对象名称。

--ca-key-object-name

Azure Keyvault 中的中间密钥对象名称。

--cert-chain-object-name

Azure Keyvault 中的证书链对象名称。

--key-vault-id

包含插件 CA 信息的 Azure Keyvault ID。

--no-wait

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

属性
默认值: False
--revision

要安装的 Azure 服务网格修订版。

--root-cert-object-name

Azure Keyvault 中的根证书对象名称。

全局参数
--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 aks mesh enable-egress-gateway

启用 Azure 服务网格出口网关。

此命令在给定群集中启用 Azure 服务网格出口网关。

az aks mesh enable-egress-gateway --gateway-configuration-name --gtw-config-name
                                  --istio-eg-gtw-name --istio-egressgateway-name
                                  --name
                                  --resource-group
                                  [--istio-eg-gtw-ns --istio-egressgateway-namespace]
                                  [--no-wait]

示例

启用 Istio 出口网关。 必须先启用静态出口网关,然后才能创建 Istio 出口网关。 有关如何创建和配置静态出口网关代理池 https://aka.ms/aks-static-egress-gateway。

az aks mesh enable-egress-gateway --resource-group MyResourceGroup --name MyManagedCluster --istio-egressgateway-name my-istio-egress-1 --istio-egressgateway-namespace my-namespace-1 --gateway-configuration-name sgc-istio-egress-1

必需参数

--gateway-configuration-name --gtw-config-name

指定 StaticGatewayConfiguration 资源的名称。

此必需字段指定 Istio 出口网关的 StaticGatewayConfiguration 资源的名称。 有关如何创建和配置静态出口网关代理池 https://aka.ms/aks-static-egress-gateway

--istio-eg-gtw-name --istio-egressgateway-name

指定 Istio 出口网关的名称。

此必需字段指定 Istio 出口网关的名称。 必须介于 1 到 253 个字符之间,必须包含小写字母数字字符、“-”或“.”,并且必须以字母数字字符开头和结尾。

--name -n

托管群集的名称。

--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.

--istio-eg-gtw-ns --istio-egressgateway-namespace

指定 Istio 出口网关的命名空间。

此可选字段指定 Istio 出口网关的命名空间。 如果未指定,则默认为“aks-istio-egress”。

属性
默认值: aks-istio-egress
--no-wait

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

属性
默认值: False
全局参数
--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 aks mesh enable-ingress-gateway

启用 Azure 服务网格入口网关。

此命令在给定群集中启用 Azure 服务网格入口网关。

az aks mesh enable-ingress-gateway --ingress-gateway-type {External, Internal}
                                   --name
                                   --resource-group
                                   [--no-wait]

示例

启用内部入口网关。

az aks mesh enable-ingress-gateway --resource-group MyResourceGroup --name MyManagedCluster --ingress-gateway-type Internal

必需参数

--ingress-gateway-type

指定入口网关的类型。

允许的值是“外部”,由具有外部 IP 地址的负载均衡器提供支持;由具有内部 IP 地址的负载均衡器支持的“内部”。

属性
接受的值: External, Internal
--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
全局参数
--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 aks mesh enable-ingress-gateway (aks-preview 扩展)

启用 Azure 服务网格入口网关。

此命令在给定群集中启用 Azure 服务网格入口网关。

az aks mesh enable-ingress-gateway --ingress-gateway-type {External, Internal}
                                   --name
                                   --resource-group
                                   [--no-wait]

示例

启用内部入口网关。

az aks mesh enable-ingress-gateway --resource-group MyResourceGroup --name MyManagedCluster --ingress-gateway-type Internal

必需参数

--ingress-gateway-type

指定入口网关的类型。

允许的值是“外部”,由具有外部 IP 地址的负载均衡器提供支持;由具有内部 IP 地址的负载均衡器支持的“内部”。

属性
接受的值: External, Internal
--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
全局参数
--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 aks mesh enable-istio-cni

为 Azure 服务网格代理重定向机制启用 Istio CNI 链接。

此命令启用 Istio CNI 链接作为 Azure 服务网格的代理重定向机制。 与使用 CNI 插件设置流量重定向相比,与 init 容器相比,CNI 链接提供了更好的安全性和性能。

az aks mesh enable-istio-cni --name
                             --resource-group
                             [--no-wait]

示例

为 Azure 服务网格启用 Istio CNI 链接。

az aks mesh enable-istio-cni --resource-group MyResourceGroup --name MyManagedCluster

必需参数

--name -n

托管群集的名称。

--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.

--no-wait

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

属性
默认值: False
全局参数
--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 aks mesh get-revisions

发现可用的 Azure 服务网格修订版及其兼容性。

此命令列出了可用的 Azure 服务网格修订及其给定位置的兼容性信息。

az aks mesh get-revisions --location

示例

发现 Azure 服务网格修订。

az aks mesh get-revisions --location westus2

必需参数

--location -l

发现可用 Azure 服务网格修订的位置。

全局参数
--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 aks mesh get-revisions (aks-preview 扩展)

发现可用的 Azure 服务网格修订版及其兼容性。

此命令可发现可用的 Azure 服务网格修订版及其给定位置的兼容性信息。

az aks mesh get-revisions --location

示例

发现 Azure 服务网格修订。

az aks mesh get-revisions --location westus2

必需参数

--location -l

发现可用 Azure 服务网格修订的位置。

全局参数
--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 aks mesh get-upgrades

发现可用的 Azure 服务网格升级。

此命令列出了群集上安装的网格修订版的可用 Azure 服务网格升级。

az aks mesh get-upgrades --name
                         --resource-group

示例

发现 Azure 服务网格升级。

az aks mesh get-upgrades --resource-group MyResourceGroup --name MyManagedCluster

必需参数

--name -n

托管群集的名称。

--resource-group -g

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

全局参数
--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 aks mesh get-upgrades (aks-preview 扩展)

发现可用的 Azure 服务网格升级。

此命令可发现群集上安装的网格修订版的可用 Azure 服务网格升级。

az aks mesh get-upgrades --name
                         --resource-group

示例

发现 Azure 服务网格升级。

az aks mesh get-upgrades --resource-group MyResourceGroup --name MyManagedCluster

必需参数

--name -n

托管群集的名称。

--resource-group -g

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

全局参数
--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