Skip to content

Commit 7977c0d

Browse files
Update functions-reference-powershell.md
Adding description ~7 and how to correctly target PS version 7.2.
1 parent 14317ae commit 7977c0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-functions/functions-reference-powershell.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ To learn more about Azure Functions runtime support policy, please refer to this
398398

399399
### Running local on a specific version
400400

401-
Support for PowerShell 7.0 in Azure Functions ended on 3 December 2022. To use PowerShell 7.2 when running locally, you need to add the setting `"FUNCTIONS_WORKER_RUNTIME_VERSION" : "7.2"` to the `Values` array in the local.setting.json file in the project root. When running locally on PowerShell 7.2, your local.settings.json file looks like the following example:
401+
Support for PowerShell 7.0 in Azure Functions has ended on 3 December 2022. To use PowerShell 7.2 when running locally, you need to add the setting `"FUNCTIONS_WORKER_RUNTIME_VERSION" : "7.2"` to the `Values` array in the local.setting.json file in the project root. When running locally on PowerShell 7.2, your local.settings.json file looks like the following example:
402402

403403
```json
404404
{
@@ -411,6 +411,9 @@ Support for PowerShell 7.0 in Azure Functions ended on 3 December 2022. To use P
411411
}
412412
```
413413

414+
> [!NOTE]
415+
> In PowerShell Functions, "~7" refers to "7.0.x". We do not automatically upgrade PowerShell Function apps that have "~7" to "7.2". Going forward we will require that apps specify both the major and minor version they want to target. Hence, it is necessary to mention "7.2" if you want to target "7.2.x"
416+
414417
### Changing the PowerShell version
415418

416419
Support for PowerShell 7.0 in Azure Functions ended on 3 December 2022. Your function app must be running on version 4.x to be able to upgrade to PowerShell 7.2. To learn how to do this, see [View and update the current runtime version](set-runtime-version.md#view-and-update-the-current-runtime-version).

0 commit comments

Comments
 (0)