Skip to content

Commit

Permalink
update application_stack docks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Jan 6, 2023
1 parent 94249db commit 4a08434
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 23 deletions.
2 changes: 1 addition & 1 deletion internal/services/appservice/helpers/app_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func windowsApplicationStackSchema() *pluginsdk.Schema {
Type: pluginsdk.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{ // TODO replace with major.minor regex?
ValidateFunc: validation.StringInSlice([]string{
"v2.0",
"v3.0",
"v4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,6 @@ func windowsFunctionAppStackSchema() *pluginsdk.Schema {
Type: pluginsdk.TypeBool,
Optional: true,
Computed: true,
//Default: false,
ConflictsWith: []string{
"site_config.0.application_stack.0.java_version",
"site_config.0.application_stack.0.node_version",
Expand Down
4 changes: 3 additions & 1 deletion website/docs/r/linux_web_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,15 @@ An `application_stack` block supports the following:

* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0` and `7.0`.

* `go_version` - (Optional) The version of Go to use. Possible values include `1.18`, and `1.19`.

* `java_server` - (Optional) The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`.

~> **NOTE:** `JBOSSEAP` requires a Premium Service Plan SKU to be a valid option.

* `java_server_version` - (Optional) The Version of the `java_server` to use.

* `java_version` - (Optional) The Version of Java to use. Supported versions of Java vary depending on the `java_server` and `java_server_version`, as well as security and fixes to major versions. Please see Azure documentation for the latest information.
* `java_version` - (Optional) The Version of Java to use. Possible values include `8`, `11`, and `17`.

~> **NOTE:** The valid version combinations for `java_version`, `java_server` and `java_server_version` can be checked from the command line via `az webapp list-runtimes --linux`.

Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/linux_web_app_slot.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,17 @@ An `application_stack` block supports the following:

* `docker_image_tag` - (Optional) The image Tag to use. e.g. `latest`.

* `dotnet_version` - (Optional) The version of .NET to use. Possible values are `3.1`, `5.0`, `6.0` and `7.0`.
* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0` and `7.0`.

* `go_version` - (Optional) The version of Go to use. Possible values include `1.18`, and `1.19`.

* `java_server` - (Optional) The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`.

~> **NOTE:** `JBOSSEAP` requires a Premium Service Plan SKU to be a valid option.

* `java_server_version` - (Optional) The Version of the `java_server` to use.

* `java_version` - (Optional) The Version of Java to use. Supported versions of Java vary depending on the `java_server` and `java_server_version`, as well as security and fixes to major versions. Please see Azure documentation for the latest information.
* `java_version` - (Optional) The Version of Java to use. Possible values include `8`, `11`, and `17`.

~> **NOTE:** The valid version combinations for `java_version`, `java_server` and `java_server_version` can be checked from the command line via `az webapp list-runtimes --linux`.

Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/windows_function_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,18 @@ An `active_directory` block supports the following:

A `application_stack` block supports the following:

* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `6` and `7`.
* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0` and `v7.0`.

* `use_dotnet_isolated_runtime` - (Optional) Should the DotNet process use an isolated runtime. Defaults to `false`.

* `java_version` - (Optional) The Version of Java to use. Supported versions include `8`, `11` & `17` (In-Preview).
* `java_version` - (Optional) The Version of Java to use. Supported versions include `1.8`, `11` & `17` (In-Preview).

* `node_version` - (Optional) The version of Node to run. Possible values include `~12`, `~14`, `~16` and `~18`.

* `powershell_core_version` - (Optional) The version of PowerShell Core to run. Possible values are `7`, and `7.2`.

~> **NOTE:** A value of `7` will provide the latest stable version. `7.2` is in preview at the time of writing.

* `use_custom_runtime` - (Optional) Should the Windows Function App use a custom runtime?

---
Expand Down
22 changes: 16 additions & 6 deletions website/docs/r/windows_web_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,33 @@ An `application_stack` block supports the following:

* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0` and `v7.0`.

~> **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows:
Portal Value | API value
:--|--:
ASP.NET V3.5 | v2.0
ASP.NET V4.8 | v4.0
.NET 6 (LTS) | v6.0
.NET 7 (STS) | v7.0

* `dotnet_core_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`.

* `tomcat_version` - (Optional) The version of Tomcat the Java App should use.
* `tomcat_version` - (Optional) The version of Tomcat the Java App should use. Conflicts with `java_embedded_server_enabled`

~> **NOTE:** See the official documentation for current supported versions.
~> **NOTE:** See the official documentation for current supported versions. Some example valuess include: `10.0`, `10.0.20`.

* `java_embedded_server_enabled` - (Optional) Should the Java Embedded Server (Java SE) be used to run the app.

* `java_version` - (Optional) The version of Java to use when `current_stack` is set to `java`. Possible values include `1.7`, `1.8`, `11` and `17`. Required with `java_container` and `java_container_version`.
* `java_version` - (Optional) The version of Java to use when `current_stack` is set to `java`.

~> **NOTE:** For compatible combinations of `java_version`, `java_container` and `java_container_version` users can use `az webapp list-runtimes` from command line.
~> **NOTE:** For currently supported versions, please see the official documentation. Some example values include: `1.8`, `1.8.0_322`, `11`, `11.0.14`, `17` and `17.0.2`

* `node_version` - (Optional) The version of node to use when `current_stack` is set to `node`. Possible values include `~12`, `~14`, `~16`, and `~18`.
* `node_version` - (Optional) The version of node to use when `current_stack` is set to `node`. Possible values are `~12`, `~14`, `~16`, and `~18`.

~> **NOTE:** This property conflicts with `java_version`.

* `php_version` - (Optional) The version of PHP to use when `current_stack` is set to `php`. Possible values include `v7.4`.
* `php_version` - (Optional) The version of PHP to use when `current_stack` is set to `php`. Possible values are `v7.1`, `v7.4` and `Off`.

~> **NOTE:** The value `Off` is used to signify latest supported by the service.

* `python` - (Optional) The app is a Python app. Defaults to `false`.

Expand Down
24 changes: 14 additions & 10 deletions website/docs/r/windows_web_app_slot.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -136,37 +136,41 @@ A `application_logs` block supports the following:

---

A `application_stack` block supports the following:
An `application_stack` block supports the following:

* `current_stack` - (Optional) The Application Stack for the Windows Web App Slot. Possible values include `dotnet`, `dotnetcore`, `node`, `python`, `php`, and `java`.
* `current_stack` - (Optional) The Application Stack for the Windows Web App. Possible values include `dotnet`, `dotnetcore`, `node`, `python`, `php`, and `java`.

~> **NOTE:** Whilst this property is Optional omitting it can cause unexpected behaviour, in particular for display of settings in the Azure Portal.

~> **NOTE:** The value of `dotnetcore` is for use in combination with `dotnet_version` set to `v3.0` only.

* `docker_container_name` - (Optional) The name of the Docker Container. For example `azure-app-service/samples/aspnethelloworld`

* `docker_container_registry` - (Optional) The registry Host on which the specified Docker Container can be located. For example `mcr.microsoft.com`

* `docker_container_tag` - (Optional) The Image Tag of the specified Docker Container to use. For example `latest`

* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values are `v2.0`, `v3.0`, `core3.1`, `v4.0`, `v5.0`, `v6.0` and `v7.0` .
* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0` and `v7.0`.

* `dotnet_core_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`.

* `java_container` - (Optional) The Java container type to use when `current_stack` is set to `java`. Possible values include `JAVA`, `JETTY`, and `TOMCAT`. Required with `java_version` and `java_container_version`.
* `tomcat_version` - (Optional) The version of Tomcat the Java App should use.

* `java_container_version` - (Optional) The Version of the `java_container` to use. Required with `java_version` and `java_container`.
~> **NOTE:** See the official documentation for current supported versions.

* `java_embedded_server_enabled` - (Optional) Should the Java Embedded Server (Java SE) be used to run the app.

* `java_version` - (Optional) The version of Java to use when `current_stack` is set to `java`. Possible values include `1.7`, `1.8`, `11` and `17`. Required with `java_container` and `java_container_version`.

~> **NOTE:** For compatible combinations of `java_version`, `java_container` and `java_container_version` users can use `az webapp list-runtimes` from command line.

* `node_version` - (Optional) The version of node to use when `current_stack` is set to `node`. Possible values include `12-LTS`, `14-LTS`, `16-LTS` and `18-LTS`.
* `node_version` - (Optional) The version of node to use when `current_stack` is set to `node`. Possible values include `~12`, `~14`, `~16`, and `~18`.

~> **NOTE:** This property conflicts with `java_version`.

* `php_version` - (Optional) The version of PHP to use when `current_stack` is set to `php`. Possible values include `v7.4`.
* `php_version` - (Optional) The version of PHP to use when `current_stack` is set to `php`. Possible values include `v7.4` and `Off`.

~> **NOTE:** The value `Off` is used to signify latest supported by the service.

* `python_version` - (Optional) The version of Python to use when `current_stack` is set to `python`. Possible values include `2.7` and `3.4.0`.
* `python` - (Optional) The app is a Python app. Defaults to `false`.

---

Expand Down

0 comments on commit 4a08434

Please sign in to comment.