Skip to content

Commit fe4b4ab

Browse files
authored
Merge pull request #207338 from JialinXin/patch-11
[WebPubSub] Update package install steps.
2 parents 3f0b8ca + aa81845 commit fe4b4ab

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,23 @@ In this tutorial, you learn how to:
6666
func init --worker-runtime dotnet
6767
```
6868

69-
2. *Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub` function extension package.
70-
71-
> [!NOTE]
72-
> The step will be optional when [Extension bundles](../azure-functions/functions-bindings-register.md#extension-bundles) are supported.
73-
74-
a. Remove `extensionBundle` section in `host.json` to enable install specific extension package in next step. Or simply make host json as simple a below.
69+
2. Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub`.
70+
71+
# [JavaScript](#tab/javascript)
72+
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support.
7573
```json
7674
{
77-
"version": "2.0"
75+
"version": "2.0",
76+
"extensionBundle": {
77+
"id": "Microsoft.Azure.Functions.ExtensionBundle",
78+
"version": "[3.3.*, 4.0.0)"
79+
}
7880
}
7981
```
80-
b. Run command to install specific function extension package.
82+
83+
# [C#](#tab/csharp)
8184
```bash
82-
func extensions install --package Microsoft.Azure.WebJobs.Extensions.WebPubSub --version 1.0.0
85+
dotnet add package Microsoft.Azure.WebJobs.Extensions.WebPubSub
8386
```
8487
8588
3. Create an `index` function to read and host a static web page for clients.
@@ -465,4 +468,4 @@ In this quickstart, you learned how to run a serverless chat application. Now, y
465468
> [Quick start: Create a simple chatroom with Azure Web PubSub](./tutorial-build-chat.md)
466469
467470
> [!div class="nextstepaction"]
468-
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)
471+
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,24 @@ In this tutorial, you learn how to:
6161
```bash
6262
func init --worker-runtime dotnet
6363
```
64-
65-
2. *Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub` function extension package.
66-
67-
> [!NOTE]
68-
> The step will be optional when [Extension bundles](../azure-functions/functions-bindings-register.md#extension-bundles) are supported.
69-
70-
a. Remove `extensionBundle` section in `host.json` to enable install specific extension package in next step. Or simply make host json as simple a below.
64+
65+
2. Install `Microsoft.Azure.WebJobs.Extensions.WebPubSub`.
66+
67+
# [JavaScript](#tab/javascript)
68+
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support.
7169
```json
7270
{
73-
"version": "2.0"
71+
"version": "2.0",
72+
"extensionBundle": {
73+
"id": "Microsoft.Azure.Functions.ExtensionBundle",
74+
"version": "[3.3.*, 4.0.0)"
75+
}
7476
}
7577
```
76-
b. Run command to install specific function extension package.
78+
79+
# [C#](#tab/csharp)
7780
```bash
78-
func extensions install --package Microsoft.Azure.WebJobs.Extensions.WebPubSub --version 1.1.0
81+
dotnet add package Microsoft.Azure.WebJobs.Extensions.WebPubSub
7982
```
8083
8184
3. Create an `index` function to read and host a static web page for clients.
@@ -413,4 +416,4 @@ In this quickstart, you learned how to run a serverless chat application. Now, y
413416
> [Azure Web PubSub bindings for Azure Functions](./reference-functions-bindings.md)
414417
415418
> [!div class="nextstepaction"]
416-
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)
419+
> [Explore more Azure Web PubSub samples](https://github.com/Azure/azure-webpubsub/tree/main/samples)

0 commit comments

Comments
 (0)