Skip to content

Commit 1fcb262

Browse files
Update worker config default runtime version to 7.2 (#903)
* set defaultRuntimeVersion to PowerShell 7.2 * Update release notes to target v4 * Update README.md to target PS 7.2 and Functions v4
1 parent f07a4c2 commit 1fcb262

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Please feel free to leave comments about any of the features and design patterns
2121

2222
PowerShell support for Functions is based on [PowerShell Core 7](https://github.com/powershell/powershell),
2323
[Functions on Linux](https://blogs.msdn.microsoft.com/appserviceteam/2017/11/15/functions-on-linux-preview/),
24-
and the [Azure Functions runtime V3](https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions).
24+
and the [Azure Functions runtime V4](https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions).
2525

2626
## What's available?
2727

@@ -82,9 +82,9 @@ On macOS if you installed via `brew`
8282
/usr/local/Cellar/azure-functions-core-tools/<version>/workers/
8383
```
8484

85-
Under the `workers/powershell` folder, create a folder with the name `7` if it does not exist yet. Copy the result of the `publish` directory into the `workers/powershell/7` folder, and copy the `publish/worker.config.json` file into the `workers/powershell` folder:
85+
Under the `workers/powershell` folder, create a folder with the name `7.2` if it does not exist yet. Copy the result of the `publish` directory into the `workers/powershell/7.2` folder, and copy the `publish/worker.config.json` file into the `workers/powershell` folder:
8686
```powershell
87-
Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/ "/usr/local/Cellar/azure-functions-core-tools/$(func --version)/workers/powershell/7"
87+
Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/ "/usr/local/Cellar/azure-functions-core-tools/$(func --version)/workers/powershell/7.2"
8888
Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/worker.config.json "/usr/local/Cellar/azure-functions-core-tools/$(func --version)/workers/powershell"
8989
```
9090

@@ -93,7 +93,7 @@ Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/worker.config.json "/us
9393
Then `cd` into a Function App with PowerShell as the worker runtime
9494
(NOTE: There's an example PowerShell Function App in the `examples` folder).
9595

96-
Set the environment variable `FUNCTIONS_WORKER_RUNTIME_VERSION` to `7`, or add this as an app setting to the `local.settings.json` file.
96+
Set the environment variable `FUNCTIONS_WORKER_RUNTIME_VERSION` to `7.2`, or add this as an app setting to the `local.settings.json` file.
9797

9898
Lastly, run:
9999

@@ -119,9 +119,9 @@ set the environment variable `"AzureWebJobsScriptRoot"`
119119
to the root folder path (the folder which contains the `host.json`)
120120
of your test functions app.
121121

122-
Under the `workers/powershell` folder, create a folder with the name `7` if it does not exist yet. Then copy the `publish` directory to `workers/powershell/7`, and the `publish/worker.config.json` to `workers/powershell`:
122+
Under the `workers/powershell` folder, create a folder with the name `7.2` if it does not exist yet. Then copy the `publish` directory to `workers/powershell/7.2`, and the `publish/worker.config.json` to `workers/powershell`:
123123
```powershell
124-
Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/ "<Azure Functions Host Root>/src/WebJobs.Script.WebHost/bin/Debug/net6.0/workers/powershell/7"
124+
Copy-Item -Recurse -Force ./src/bin/Debug/net6.0/publish/ "<Azure Functions Host Root>/src/WebJobs.Script.WebHost/bin/Debug/net6.0/workers/powershell/7.2"
125125
Copy-Item -Force ./src/bin/Debug/net6.0/publish/worker.config.json "<Azure Functions Host Root>/src/WebJobs.Script.WebHost/bin/Debug/net6.0/workers/powershell"
126126
```
127127

package/Microsoft.Azure.Functions.PowerShellWorker.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
1616
<projectUrl>https://github.com/Azure/azure-functions-powershell-worker</projectUrl>
1717
<icon>images\Powershell_black_64.png</icon>
1818
<description>The Azure Function PowerShell Language Worker allows users to write Azure Function Apps using PowerShell. It leverages the PowerShell Core SDK.</description>
19-
<releaseNotes># 3.0.0
19+
<releaseNotes># 4.0.0
2020

2121
Initial Release</releaseNotes>
2222
<copyright>© Microsoft Corporation. All rights reserved.</copyright>

src/worker.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"defaultExecutablePath":"dotnet",
66
"defaultWorkerPath":"%FUNCTIONS_WORKER_RUNTIME_VERSION%/Microsoft.Azure.Functions.PowerShellWorker.dll",
77
"supportedRuntimeVersions":["7", "7.2"],
8-
"defaultRuntimeVersion": "7",
8+
"defaultRuntimeVersion": "7.2",
99
"sanitizeRuntimeVersionRegex":"\\d+\\.?\\d*"
1010
}
1111
}

0 commit comments

Comments
 (0)