From 178be8d7e090ca916471a0702aae7668721a7388 Mon Sep 17 00:00:00 2001 From: Harshavardhan Musanalli <10049720+harshavmb@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:38:05 +0200 Subject: [PATCH] Support dotnet_framework_version 8.0 for logic_app_standard resource --- .../logic/logic_app_standard_resource.go | 1 + .../logic/logic_app_standard_resource_test.go | 16 ++++++++++++++++ website/docs/r/logic_app_standard.html.markdown | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/internal/services/logic/logic_app_standard_resource.go b/internal/services/logic/logic_app_standard_resource.go index 0c29d3383e6f..f217e0923654 100644 --- a/internal/services/logic/logic_app_standard_resource.go +++ b/internal/services/logic/logic_app_standard_resource.go @@ -871,6 +871,7 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { "v4.0", "v5.0", "v6.0", + "v8.0", }, false), }, diff --git a/internal/services/logic/logic_app_standard_resource_test.go b/internal/services/logic/logic_app_standard_resource_test.go index dac202b7739a..c0307d33d38d 100644 --- a/internal/services/logic/logic_app_standard_resource_test.go +++ b/internal/services/logic/logic_app_standard_resource_test.go @@ -851,6 +851,22 @@ func TestAccLogicAppStandard_dotnetVersion6(t *testing.T) { }) } +func TestAccLogicAppStandard_dotnetVersion8(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_logic_app_standard", "test") + r := LogicAppStandardResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.dotnetVersion(data, "~4", "v8.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("site_config.0.dotnet_framework_version").HasValue("v8.0"), + ), + }, + data.ImportStep(), + }) +} + func TestAccLogicAppStandard_vNetIntegration(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_logic_app_standard", "test") r := LogicAppStandardResource{} diff --git a/website/docs/r/logic_app_standard.html.markdown b/website/docs/r/logic_app_standard.html.markdown index 468898202383..34e2df730e40 100644 --- a/website/docs/r/logic_app_standard.html.markdown +++ b/website/docs/r/logic_app_standard.html.markdown @@ -183,7 +183,7 @@ The `site_config` block supports the following: * `cors` - (Optional) A `cors` block as defined below. -* `dotnet_framework_version` - (Optional) The version of the .NET framework's CLR used in this Logic App Possible values are `v4.0` (including .NET Core 2.1 and 3.1), `v5.0` and `v6.0`. [For more information on which .NET Framework version to use based on the runtime version you're targeting - please see this table](https://docs.microsoft.com/azure/azure-functions/functions-dotnet-class-library#supported-versions). Defaults to `v4.0`. +* `dotnet_framework_version` - (Optional) The version of the .NET framework's CLR used in this Logic App Possible values are `v4.0` (including .NET Core 2.1 and 3.1), `v5.0`, `v6.0` and `v8.0`. [For more information on which .NET Framework version to use based on the runtime version you're targeting - please see this table](https://docs.microsoft.com/azure/azure-functions/functions-dotnet-class-library#supported-versions). Defaults to `v4.0`. * `elastic_instance_minimum` - (Optional) The number of minimum instances for this Logic App Only affects apps on the Premium plan.