Skip to content

Commit 212c67b

Browse files
Merge pull request #216948 from MadhuraBharadwaj-MSFT/patch-11
Update functions-reference-powershell.md
2 parents 6a31ef8 + 772a164 commit 212c67b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,22 +399,22 @@ To learn more about Azure Functions runtime support policy, please refer to this
399399

400400
### Running local on a specific version
401401

402-
When running locally the Azure Functions runtime defaults to using PowerShell Core 6. To instead use PowerShell 7 when running locally, you need to add the setting `"FUNCTIONS_WORKER_RUNTIME_VERSION" : "~7"` to the `Values` array in the local.setting.json file in the project root. When running locally on PowerShell 7, your local.settings.json file looks like the following example:
402+
Support for PowerShell 7.0 in Azure Functions is ending 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:
403403

404404
```json
405405
{
406406
"IsEncrypted": false,
407407
"Values": {
408408
"AzureWebJobsStorage": "",
409409
"FUNCTIONS_WORKER_RUNTIME": "powershell",
410-
"FUNCTIONS_WORKER_RUNTIME_VERSION" : "~7"
410+
"FUNCTIONS_WORKER_RUNTIME_VERSION" : "7.2"
411411
}
412412
}
413413
```
414414

415415
### Changing the PowerShell version
416416

417-
Your function app must be running on version 3.x to be able to upgrade from PowerShell Core 6 to PowerShell 7. 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).
417+
Support for PowerShell 7.0 in Azure Functions is ending 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).
418418

419419

420420
Use the following steps to change the PowerShell version used by your function app. You can do this either in the Azure portal or by using PowerShell.
@@ -424,9 +424,9 @@ Use the following steps to change the PowerShell version used by your function a
424424
1. In the [Azure portal](https://portal.azure.com), browse to your function app.
425425

426426
1. Under **Settings**, choose **Configuration**. In the **General settings** tab, locate the **PowerShell version**.
427-
428-
:::image type="content" source="media/functions-reference-powershell/change-powershell-version-portal.png" alt-text="Choose the PowerShell version used by the function app":::
429-
427+
428+
![image](https://user-images.githubusercontent.com/108835427/199586564-25600629-44c7-439c-91f9-a500ad2989c4.png)
429+
430430
1. Choose your desired **PowerShell Core version** and select **Save**. When warned about the pending restart choose **Continue**. The function app restarts on the chosen PowerShell version.
431431

432432
# [PowerShell](#tab/powershell)
@@ -438,7 +438,7 @@ Set-AzResource -ResourceId "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RES
438438
439439
```
440440

441-
Replace `<SUBSCRIPTION_ID>`, `<RESOURCE_GROUP>`, and `<FUNCTION_APP>` with the ID of your Azure subscription, the name of your resource group and function app, respectively. Also, replace `<VERSION>` with either `~6` or `~7`. You can verify the updated value of the `powerShellVersion` setting in `Properties` of the returned hash table.
441+
Replace `<SUBSCRIPTION_ID>`, `<RESOURCE_GROUP>`, and `<FUNCTION_APP>` with the ID of your Azure subscription, the name of your resource group and function app, respectively. Also, replace `<VERSION>` with `7.2`. You can verify the updated value of the `powerShellVersion` setting in `Properties` of the returned hash table.
442442

443443
---
444444

0 commit comments

Comments
 (0)