Skip to content

Commit

Permalink
#24287: Support node_version 20-lts for azurerm_linux_web_app
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavmb committed Dec 20, 2023
1 parent ab4f143 commit 8eb4bc5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/app-service/linux-nodejs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "azurerm_linux_web_app" "example" {

site_config {
application_stack {
node_version = "18-lts"
node_version = "20-lts"
}
}
}
1 change: 1 addition & 0 deletions internal/services/appservice/helpers/app_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ func linuxApplicationStackSchema() *pluginsdk.Schema {
"14-lts",
"16-lts",
"18-lts",
"20-lts",
}, false),
ExactlyOneOf: linuxApplicationStackConstraint,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ func TestAccLinuxWebApp_withNode18LTS(t *testing.T) {

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.node(data, "18-lts"),
Config: r.node(data, "20-lts"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ func TestAccLinuxWebAppSlot_withNode16LTS(t *testing.T) {

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.node(data, "18-lts"),
Config: r.node(data, "20-lts"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/linux_web_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ An `application_stack` block supports the following:

~> **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`.

* `node_version` - (Optional) The version of Node to run. Possible values include `12-lts`, `14-lts`, `16-lts`, and `18-lts`. This property conflicts with `java_version`.
* `node_version` - (Optional) The version of Node to run. Possible values include `12-lts`, `14-lts`, `16-lts`, `18-lts` and `20-lts`. This property conflicts with `java_version`.

~> **NOTE:** 10.x versions have been/are being deprecated so may cease to work for new resources in the future and may be removed from the provider.

Expand Down

0 comments on commit 8eb4bc5

Please sign in to comment.