From ef64c2bb1dba1d6c63e21e7d40806ea82868abda Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Mon, 19 Aug 2024 10:25:13 -0600 Subject: [PATCH 1/2] Set the default PowerShell worker to 7.4 --- src/Azure.Functions.Cli/Common/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Azure.Functions.Cli/Common/Constants.cs b/src/Azure.Functions.Cli/Common/Constants.cs index 1b1fb10f2..66e38a032 100644 --- a/src/Azure.Functions.Cli/Common/Constants.cs +++ b/src/Azure.Functions.Cli/Common/Constants.cs @@ -57,7 +57,7 @@ internal static class Constants public const string CustomHandlerPropertyName = "customHandler"; public const string AuthLevelErrorMessage = "Unable to configure Authorization level. The selected template does not use Http Trigger"; public const string HttpTriggerTemplateName = "HttpTrigger"; - public const string PowerShellWorkerDefaultVersion = "7.2"; + public const string PowerShellWorkerDefaultVersion = "7.4"; public const string EnableWorkerIndexing = "EnableWorkerIndexing"; public const string UserSecretsIdElementName = "UserSecretsId"; public const string TargetFrameworkElementName = "TargetFramework"; From eb21c579df14061ce57fc5b29cef9a224e4d96a4 Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 6 Nov 2024 15:03:28 -0800 Subject: [PATCH 2/2] Fix test issue --- test/Azure.Functions.Cli.Tests/E2E/InitTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Azure.Functions.Cli.Tests/E2E/InitTests.cs b/test/Azure.Functions.Cli.Tests/E2E/InitTests.cs index 99ea59050..21cee2241 100644 --- a/test/Azure.Functions.Cli.Tests/E2E/InitTests.cs +++ b/test/Azure.Functions.Cli.Tests/E2E/InitTests.cs @@ -725,7 +725,7 @@ public Task init_function_app_powershell_enable_managed_dependencies_and_set_def "FUNCTIONS_WORKER_RUNTIME", "powershell", "FUNCTIONS_WORKER_RUNTIME_VERSION", - "7.2" + "7.4" } } },