Skip to content

Commit 127a380

Browse files
authored
Merge pull request #189718 from JialinXin/patch-3
[WebPubSub] Update func sample doc
2 parents 2dffa44 + fa06eb4 commit 127a380

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/azure-web-pubsub/quickstart-serverless.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,16 @@ Use the following commands to create these items.
381381
# [JavaScript](#tab/javascript)
382382
383383
```bash
384-
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime node --runtime-version 12 --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
384+
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime node --runtime-version 14 --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
385385
```
386386
387387
# [C#](#tab/csharp)
388388
389389
```bash
390390
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime dotnet --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
391391
```
392+
> [!NOTE]
393+
> If you're running the function version other than v3.0, please check [Azure Functions runtime versions documentation](../azure-functions/functions-versions.md#languages) to set `--runtime` parameter to supported value.
392394
393395
1. Deploy the function project to Azure:
394396

articles/azure-web-pubsub/tutorial-serverless-notification.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,16 @@ Use the following commands to create these item.
368368
# [JavaScript](#tab/javascript)
369369
370370
```bash
371-
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime node --runtime-version 12 --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
371+
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime node --runtime-version 14 --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
372372
```
373373
374374
# [C#](#tab/csharp)
375375
376376
```bash
377377
az functionapp create --resource-group WebPubSubFunction --consumption-plan-location <REGION> --runtime dotnet --functions-version 3 --name <FUNCIONAPP_NAME> --storage-account <STORAGE_NAME>
378378
```
379+
> [!NOTE]
380+
> If you're running the function version other than v3.0, please check [Azure Functions runtime versions documentation](../azure-functions/functions-versions.md#languages) to set `--runtime` parameter to supported value.
379381
380382
1. Deploy the function project to Azure:
381383

0 commit comments

Comments
 (0)