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-functions/durable/quickstart-js-vscode.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
40
40
41
41
1. In Visual Studio Code, press F1 (or Ctrl/Cmd+Shift+P) to open the command palette. In the command palette, search for and select `Azure Functions: Create New Project...`.
| Select a template for your function | Durable Functions activity | Create an activity function |
102
102
| Provide a function name | Hello | Name of your activity function |
103
103
104
-
You've added the `Hello` activity function that is invoked by the orchestrator. Open *Hello/index.js* to see that it is taking a name as input and returning a greeting. An activity function is where you'll perform actions such as making a database call or performing a computation.
104
+
You've added the `Hello` activity function that is invoked by the orchestrator. Open *Hello/index.js* to see that it's taking a name as input and returning a greeting. An activity function is where you'll perform actions such as making a database call or performing a computation.
105
105
106
106
Finally, you'll add an HTTP triggered function that starts the orchestration.
107
107
@@ -125,14 +125,14 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
125
125
126
126
Azure Functions Core Tools lets you run an Azure Functions project on your local development computer. You're prompted to install these tools the first time you start a function from Visual Studio Code.
127
127
128
-
1. To test your function, set a breakpoint in the `Hello` activity function code (*Hello/index.js*). Press F5 or select *Debug: Start Debugging* from the command palette to start the function app project. Output from Core Tools is displayed in the **Terminal** panel.
128
+
1. To test your function, set a breakpoint in the `Hello` activity function code (*Hello/index.js*). Press F5 or select `Debug: Start Debugging` from the command palette to start the function app project. Output from Core Tools is displayed in the **Terminal** panel.
129
129
130
130
> [!NOTE]
131
131
> Refer to the [Durable Functions Diagnostics](durable-functions-diagnostics.md#debugging) for more information on debugging.
132
132
133
133
1. In the **Terminal** panel, copy the URL endpoint of your HTTP-triggered function.
134
134
135
-

135
+

136
136
137
137
1. Using a tool like [Postman](https://www.getpostman.com/) or [cURL](https://curl.haxx.se/), send an HTTP POST request to the URL endpoint. Replace the last segment with the name of the orchestrator function (`HelloOrchestrator`). The URL should be similar to `http://localhost:7071/api/orchestrators/HelloOrchestrator`.
138
138
@@ -169,9 +169,7 @@ After you've verified that the function runs correctly on your local computer, i
169
169
170
170
## Test your function in Azure
171
171
172
-
1. Copy the URL of the HTTP trigger from the **Output** panel. The URL that calls your HTTP-triggered function should be in the following format:
1. Copy the URL of the HTTP trigger from the **Output** panel. The URL that calls your HTTP-triggered function should be in this format: `http://<functionappname>.azurewebsites.net/orchestrators/HelloOrchestrator`
175
173
176
174
2. Paste this new URL for the HTTP request into your browser's address bar. You should get the same status response as before when using the published app.
0 commit comments