You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/tutorial-serverless-notification.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ In this tutorial, you learn how to:
69
69
70
70
## Create and run the functions locally
71
71
72
-
1. Make sure you have [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) installed. And then create an empty directory for the project. Run command under this working directory.
72
+
1. Make sure you have [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) installed. Now, create an empty directory for the project. Run command under this working directory. Use one of the given options below.
73
73
74
74
# [JavaScript](#tab/javascript)
75
75
```bash
@@ -91,10 +91,10 @@ In this tutorial, you learn how to:
2. Follow the steps to install`Microsoft.Azure.WebJobs.Extensions.WebPubSub`.
95
95
96
96
# [JavaScript](#tab/javascript)
97
-
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support.
97
+
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support. For updating the `host.json`, open the file in editor, and then replace the existing version extensionBundle to version _3.3.0_ or later.
98
98
```json
99
99
{
100
100
"version": "2.0",
@@ -117,7 +117,7 @@ In this tutorial, you learn how to:
117
117
118
118
119
119
# [Python](#tab/python)
120
-
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support.
120
+
Update `host.json`'s extensionBundle to version _3.3.0_ or later to get Web PubSub support. For updating the `host.json`, open the file in editor, and then replace the existing version extensionBundle to version _3.3.0_ or later.
121
121
```json
122
122
{
123
123
"version": "2.0",
@@ -133,7 +133,7 @@ In this tutorial, you learn how to:
133
133
func new -n index -t HttpTrigger
134
134
```
135
135
# [JavaScript](#tab/javascript)
136
-
- Update `index/function.json` and copy following json codes.
136
+
- Create a folder index and make a new file fuction.json inside the folder. Update `index/function.json` and copy following json codes.
137
137
```json
138
138
{
139
139
"bindings": [
@@ -155,7 +155,7 @@ In this tutorial, you learn how to:
155
155
]
156
156
}
157
157
```
158
-
- Update `index/index.js` and copy following codes.
158
+
- In the index folder, create a new file index.js. Update `index/index.js` and copy following codes.
159
159
```js
160
160
var fs = require('fs');
161
161
var path = require('path');
@@ -276,7 +276,7 @@ In this tutorial, you learn how to:
276
276
]
277
277
}
278
278
```
279
-
- Update`negotiate/index.js` and copy following codes.
279
+
- Create a folder negotiate and update`negotiate/index.js` and copy following codes.
@@ -317,7 +317,7 @@ In this tutorial, you learn how to:
317
317
```
318
318
319
319
# [Python](#tab/python)
320
-
- Update`negotiate/function.json` and copy following json codes.
320
+
- Create a folder negotiate and update`negotiate/function.json` and copy following json codes.
321
321
```json
322
322
{
323
323
"scriptFile": "__init__.py",
@@ -358,7 +358,7 @@ In this tutorial, you learn how to:
358
358
func new -n notification -t TimerTrigger
359
359
```
360
360
# [JavaScript](#tab/javascript)
361
-
- Update`notification/function.json` and copy following json codes.
361
+
- Create a folder notification and update`notification/function.json` and copy following json codes.
362
362
```json
363
363
{
364
364
"bindings": [
@@ -377,7 +377,7 @@ In this tutorial, you learn how to:
377
377
]
378
378
}
379
379
```
380
-
- Update`notification/index.js` and copy following codes.
380
+
- Create a folder notification and update`notification/index.js` and copy following codes.
381
381
```js
382
382
module.exports = function(context, myTimer) {
383
383
context.bindings.actions = {
@@ -443,7 +443,7 @@ In this tutorial, you learn how to:
443
443
```
444
444
445
445
# [Python](#tab/python)
446
-
- Update`notification/function.json` and copy following json codes.
446
+
- Create a folder notification and update`notification/function.json` and copy following json codes.
447
447
```json
448
448
{
449
449
"scriptFile": "__init__.py",
@@ -565,7 +565,7 @@ Before you can deploy your function code to Azure, you need to create three reso
565
565
566
566
Use the following commands to create these items.
567
567
568
-
1. If you haven't done so already, sign in to Azure:
568
+
1. Signin to Azure:
569
569
570
570
```azurecli
571
571
az login
@@ -612,7 +612,7 @@ Use the following commands to create these items.
612
612
613
613
1. Deploy the functionproject to Azure:
614
614
615
-
After you have successfully created your function app in Azure, you're now ready to deploy your local functions project by using the [func azure functionapp publish](../azure-functions/functions-run-local.md) command.
615
+
Once you create your functionappin Azure, you're now ready to deploy your local functions project by using the [func azure functionapp publish](../azure-functions/functions-run-local.md) command.
@@ -627,7 +627,7 @@ Use the following commands to create these items.
627
627
628
628
If you're not going to continue to use this app, delete all resources created by this doc with the following steps so you don't incur any charges:
629
629
630
-
1. In the Azure portal, select **Resource groups** on the far left, and then select the resource group you created. You may use the search box to find the resource group by its name instead.
630
+
1. In the Azure portal, select**Resource groups** on the far left, and thenselectthe resource group you created. Use the search box to find the resource group by its name instead.
631
631
632
632
1. In the window that opens, selectthe resource group, and thenselect**Delete resource group**.
0 commit comments