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

az containerapp env java-component eureka-server-for-spring

注释

此参考是 Azure CLI(版本 2.62.0 或更高版本)的容器应用扩展的一部分。 该扩展将在首次运行 az containerapp env java-component eureka-server-for-spring 命令时自动安装。 了解更多关于扩展 的相关信息。

用于管理容器应用环境的 Eureka Server for Spring 的命令。

命令

名称 说明 类型 Status
az containerapp env java-component eureka-server-for-spring create

用于创建 Spring 的 Eureka Server 的命令。

扩展 GA
az containerapp env java-component eureka-server-for-spring delete

用于删除 Spring 的 Eureka Server 的命令。

扩展 GA
az containerapp env java-component eureka-server-for-spring show

用于显示 Spring 的 Eureka Server 的命令。

扩展 GA
az containerapp env java-component eureka-server-for-spring update

用于更新 Spring 的 Eureka Server 的命令。

扩展 GA

az containerapp env java-component eureka-server-for-spring create

用于创建 Spring 的 Eureka Server 的命令。

az containerapp env java-component eureka-server-for-spring create --environment
                                                                   --name
                                                                   --resource-group
                                                                   [--bind]
                                                                   [--max-replicas]
                                                                   [--min-replicas]
                                                                   [--no-wait]
                                                                   [--set-configs]
                                                                   [--unbind]

示例

使用默认配置创建适用于 Spring 的 Eureka 服务器。

az containerapp env java-component eureka-server-for-spring create -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment

使用自定义配置创建适用于 Spring 的 Eureka 服务器。

az containerapp env java-component eureka-server-for-spring create -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --set-configurations PropertyName1=Value1 PropertyName2=Value2

必需参数

--environment

环境名称。

--name -n

Java 组件名称。

--resource-group -g

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

可选参数

--bind

要连接到此 Java 组件的服务、绑定或其他 Java 组件的空间分隔列表。 例如,SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...

--max-replicas

要为 Java 组件运行的最大副本数。

默认值: 1
--min-replicas

要为 Java 组件运行的最小副本数。

默认值: 1
--no-wait

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

默认值: False
--set-configs --set-configurations

添加或更新 Java 组件配置(s)。 不会修改其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...

--unbind

要从此 Java 组件中删除的服务、绑定或 Java 组件的空间分隔列表。 例如BIND_NAME1...

全局参数
--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 containerapp env java-component eureka-server-for-spring delete

用于删除 Spring 的 Eureka Server 的命令。

az containerapp env java-component eureka-server-for-spring delete --environment
                                                                   --name
                                                                   --resource-group
                                                                   [--no-wait]
                                                                   [--yes]

示例

删除适用于 Spring 的 Eureka 服务器。

az containerapp env java-component eureka-server-for-spring delete -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment

必需参数

--environment

环境名称。

--name -n

Java 组件名称。

--resource-group -g

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

可选参数

--no-wait

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

默认值: False
--yes -y

不要提示确认。

默认值: False
全局参数
--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 containerapp env java-component eureka-server-for-spring show

用于显示 Spring 的 Eureka Server 的命令。

az containerapp env java-component eureka-server-for-spring show --environment
                                                                 --name
                                                                 --resource-group

示例

显示适用于 Spring 的 Eureka 服务器。

az containerapp env java-component eureka-server-for-spring show -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment

必需参数

--environment

环境名称。

--name -n

Java 组件名称。

--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 containerapp env java-component eureka-server-for-spring update

用于更新 Spring 的 Eureka Server 的命令。

az containerapp env java-component eureka-server-for-spring update --environment
                                                                   --name
                                                                   --resource-group
                                                                   [--bind]
                                                                   [--max-replicas]
                                                                   [--min-replicas]
                                                                   [--no-wait]
                                                                   [--remove-all-configs {false, true}]
                                                                   [--remove-configs]
                                                                   [--replace-configs]
                                                                   [--set-configs]
                                                                   [--unbind]

示例

使用自定义配置更新 Spring 的 Eureka Server。

az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --set-configurations PropertyName1=Value1 PropertyName2=Value2

替换 Eureka Server for Spring 的所有配置。

az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --replace-configurations PropertyName1=Value1 PropertyName2=Value2

删除适用于 Spring 的 Eureka Server 的配置。

az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --remove-configurations PropertyName1 PropertyName2

删除适用于 Spring 的 Eureka Server 的所有配置。

az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --remove-all-configurations

必需参数

--environment

环境名称。

--name -n

Java 组件名称。

--resource-group -g

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

可选参数

--bind

要连接到此 Java 组件的服务、绑定或其他 Java 组件的空间分隔列表。 例如,SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...

--max-replicas

要为 Java 组件运行的最大副本数。

--min-replicas

要为 Java 组件运行的最小副本数。

--no-wait

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

默认值: False
--remove-all-configs --remove-all-configurations

删除所有 Java 组件配置(s)。

接受的值: false, true
--remove-configs --remove-configurations

删除 Java 组件配置(s)。 指定用空格分隔的配置名称,格式 <propertyName><propertyName>...

--replace-configs --replace-configurations

替换 Java 组件配置(s),将删除其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...

--set-configs --set-configurations

添加或更新 Java 组件配置(s)。 不会修改其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...

--unbind

要从此 Java 组件中删除的服务、绑定或 Java 组件的空间分隔列表。 例如BIND_NAME1...

全局参数
--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 获取完整的调试日志。