如何使用 Azure CLI 设置 Java 和 Tomcat 版本?
How do you set the Java and Tomcat version using Azure CLI?
我可以使用门户为 Azure 网站成功设置 Java 和 Tomcat 版本。出于 CI/CD 目的,我需要能够使用 Azure CLI 从命令行设置它。
您可以使用 Azure CLI 2.0 来设置它。
az webapp config set --name
--resource-group
[--always-on {false, true}]
[--auto-heal-enabled {false, true}]
[--java-container]
[--java-container-version]
[--java-version]
[--linux-fx-version]
[--net-framework-version]
[--php-version]
[--python-version]
[--remote-debugging-enabled {false, true}]
[--slot]
[--startup-file]
[--use-32bit-worker-process {false, true}]
[--web-sockets-enabled {false, true}]
您可以使用 az webapp config set -h
获得帮助。你也可以参考这个 link.
--java-container
The java container, e.g., Tomcat, Jetty.
--java-container-version
The version of the java container, e.g., '8.0.23' for Tomcat.
--java-version
The version used to run your web app if using Java, e.g., '1.7' for Java 7, '1.8' for Java 8.
我可以使用门户为 Azure 网站成功设置 Java 和 Tomcat 版本。出于 CI/CD 目的,我需要能够使用 Azure CLI 从命令行设置它。
您可以使用 Azure CLI 2.0 来设置它。
az webapp config set --name
--resource-group
[--always-on {false, true}]
[--auto-heal-enabled {false, true}]
[--java-container]
[--java-container-version]
[--java-version]
[--linux-fx-version]
[--net-framework-version]
[--php-version]
[--python-version]
[--remote-debugging-enabled {false, true}]
[--slot]
[--startup-file]
[--use-32bit-worker-process {false, true}]
[--web-sockets-enabled {false, true}]
您可以使用 az webapp config set -h
获得帮助。你也可以参考这个 link.
--java-container
The java container, e.g., Tomcat, Jetty.
--java-container-version
The version of the java container, e.g., '8.0.23' for Tomcat.
--java-version
The version used to run your web app if using Java, e.g., '1.7' for Java 7, '1.8' for Java 8.