Skip to content

Commit 803263d

Browse files
committed
Update instructions
1 parent 59dc60d commit 803263d

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed
10.3 KB
Loading

articles/azure-functions/durable/quickstart-js-vscode.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
4040

4141
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...`.
4242

43+
![Create function](media/quickstart-js-vscode/functions-vscode-create-project.png)
44+
4345
1. Choose an empty folder location for your project and choose **Select**.
4446

4547
1. Following the prompts, provide the following information:
@@ -57,7 +59,7 @@ A package.json file is also created in the root folder.
5759

5860
## Install the Durable Functions npm package
5961

60-
To work with Durable Functions from a Node.js function app, you use a library called `durable-functions`.
62+
To work with Durable Functions in a Node.js function app, you use a library called `durable-functions`.
6163

6264
1. Use the *View* menu or Ctrl+Shift+` to open a new terminal in VS Code.
6365

@@ -71,14 +73,12 @@ The most basic Durable Functions app contains three functions:
7173
* *Activity function* - called by the orchestrator function, performs work, and optionally returns a value.
7274
* *Client function* - a regular Azure Function that starts an orchestrator function. This example uses an HTTP triggered function.
7375

74-
### Orchestrator
76+
### Orchestrator function
7577

7678
You use a template to create the durable function code in your project.
7779

7880
1. In the command palette, search for and select `Azure Functions: Create Function...`.
7981

80-
![Create function](media/quickstart-js-vscode/functions-vscode-create-project.png)
81-
8282
1. Following the prompts, provide the following information:
8383

8484
| Prompt | Value | Description |
@@ -90,7 +90,7 @@ You've added an orchestrator to coordinate activity functions. Open *HelloOrches
9090

9191
Next, you'll add the referenced `Hello` activity function.
9292

93-
### Activity
93+
### Activity function
9494

9595
1. In the command palette, search for and select `Azure Functions: Create Function...`.
9696

@@ -101,7 +101,7 @@ Next, you'll add the referenced `Hello` activity function.
101101
| Select a template for your function | Durable Functions activity | Create an activity function |
102102
| Provide a function name | Hello | Name of your activity function |
103103

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.
105105

106106
Finally, you'll add an HTTP triggered function that starts the orchestration.
107107

@@ -125,14 +125,14 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
125125

126126
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.
127127

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.
129129

130130
> [!NOTE]
131131
> Refer to the [Durable Functions Diagnostics](durable-functions-diagnostics.md#debugging) for more information on debugging.
132132
133133
1. In the **Terminal** panel, copy the URL endpoint of your HTTP-triggered function.
134134

135-
![Azure local output](media/durable-functions-create-first-csharp/functions-vscode-f5.png)
135+
![Azure local output](media/quickstart-js-vscode/functions-vscode-f5.png)
136136

137137
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`.
138138

@@ -169,9 +169,7 @@ After you've verified that the function runs correctly on your local computer, i
169169

170170
## Test your function in Azure
171171

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:
173-
174-
http://<functionappname>.azurewebsites.net/orchestrators/HelloOrchestrator
172+
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`
175173

176174
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.
177175

0 commit comments

Comments
 (0)