Skip to content

Set PowerShell 7.6 as the default version - #1171

Open
Francisco Gamino (Francisco-Gamino) wants to merge 2 commits into
devfrom
user/francisco-gamino/set-default-ps-version-7.6
Open

Francisco Gamino (Francisco-Gamino) wants to merge 2 commits into
devfrom
user/francisco-gamino/set-default-ps-version-7.6

Conversation

@Francisco-Gamino

Copy link
Copy Markdown
Contributor

Issue describing the changes in this PR

Set PowerShell 7.6 as the default language worker version when FUNCTIONS_WORKER_RUNTIME_VERSION is not explicitly specified.

Resolves #1165

  • Update defaultRuntimeVersion from 7.4 to 7.6.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

Update src/worker.config.json so PowerShell 7.6 is selected when
FUNCTIONS_WORKER_RUNTIME_VERSION is not explicitly specified.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The reviewed configuration change has no unresolved issues.

Review effort: Lite
Findings: None

What changed in this PR

Updates the default PowerShell worker runtime to version 7.6 when unspecified.

Changes:

  • Changes defaultRuntimeVersion from 7.4 to 7.6.
File Description
src/​worker.config.json Sets PowerShell 7.6 as the default runtime.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/worker.config.json
"defaultWorkerPath":"%FUNCTIONS_WORKER_RUNTIME_VERSION%/Microsoft.Azure.Functions.PowerShellWorker.dll",
"supportedRuntimeVersions":["7", "7.2", "7.4", "7.6"],
"defaultRuntimeVersion": "7.4",
"defaultRuntimeVersion": "7.6",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asked GHCP on the impact on this change and below was flagged. Can you review?


Question on Durable impact: Apps without FUNCTIONS_WORKER_RUNTIME_VERSION will move from the 7.4 to the 7.6 worker. When ExternalDurablePowerShellSDK is unset, 7.4 defaults to the built-in Durable SDK (?? false). 7.6 defaults to the external one (?? true) and throws ExternalSDKWasNotLoaded if the module isn't imported. So unpinned Durable apps on the built-in SDK would break.

  • Which scenarios actually fall back to defaultRuntimeVersion (deployed apps, or mainly local Core Tools)?
  • If this break is expected, could we add a release_notes.md entry with the fix (pin 7.4, import the SDK, or set ExternalDurablePowerShellSDK=false)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set PowerShell 7.6 as the default language worker version

3 participants