az containerapp env java-component eureka-server-for-spring
Note
此参考是 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 的命令。 |
Extension | GA |
| az containerapp env java-component eureka-server-for-spring delete |
用于删除 Spring 的 Eureka Server 的命令。 |
Extension | GA |
| az containerapp env java-component eureka-server-for-spring show |
用于显示 Spring 的 Eureka Server 的命令。 |
Extension | GA |
| az containerapp env java-component eureka-server-for-spring update |
用于更新 Spring 的 Eureka Server 的命令。 |
Extension | 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 --set-configurations]
[--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
必需参数
环境名称。
Java 组件名称。
资源组的名称。 可以使用 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.
要连接到此 Java 组件的服务、绑定或其他 Java 组件的空间分隔列表。 例如,SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...
要为 Java 组件运行的最大副本数。
| 属性 | 值 |
|---|---|
| Parameter group: | Scale Arguments |
| 默认值: | 1 |
要为 Java 组件运行的最小副本数。
| 属性 | 值 |
|---|---|
| Parameter group: | Scale Arguments |
| 默认值: | 1 |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
添加或更新 Java 组件配置(s)。 不会修改其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...
要从此 Java 组件中删除的服务、绑定或 Java 组件的空间分隔列表。 例如BIND_NAME1...
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 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
必需参数
环境名称。
Java 组件名称。
资源组的名称。 可以使用 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.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | 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 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
必需参数
环境名称。
Java 组件名称。
资源组的名称。 可以使用 az configure --defaults 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 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 --remove-all-configurations {false, true}]
[--remove-configs --remove-configurations]
[--replace-configs --replace-configurations]
[--set-configs --set-configurations]
[--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
必需参数
环境名称。
Java 组件名称。
资源组的名称。 可以使用 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.
要连接到此 Java 组件的服务、绑定或其他 Java 组件的空间分隔列表。 例如,SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...
要为 Java 组件运行的最大副本数。
| 属性 | 值 |
|---|---|
| Parameter group: | Scale Arguments |
要为 Java 组件运行的最小副本数。
| 属性 | 值 |
|---|---|
| Parameter group: | Scale Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
删除所有 Java 组件配置(s)。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
删除 Java 组件配置(s)。 指定用空格分隔的配置名称,格式 <propertyName><propertyName>...
替换 Java 组件配置(s),将删除其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...
添加或更新 Java 组件配置(s)。 不会修改其他现有配置。 配置必须采用格式 <propertyName>=<value><propertyName>=<value>...
要从此 Java 组件中删除的服务、绑定或 Java 组件的空间分隔列表。 例如BIND_NAME1...
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |