Skip to content

Commit d65afc0

Browse files
authored
Merge pull request #76808 from ColbyTresness/release-functions-deployment-updates
Release functions deployment updates
2 parents 378dc99 + a253524 commit d65afc0

36 files changed

+363
-218
lines changed

articles/azure-functions/TOC.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
- name: Quickstarts
1212
expanded: true
1313
items:
14-
- name: Create function - Visual Studio
15-
href: functions-create-your-first-function-visual-studio.md
1614
- name: Create function - Visual Studio Code
1715
href: functions-create-first-function-vs-code.md
16+
- name: Create function - Visual Studio
17+
href: functions-create-your-first-function-visual-studio.md
1818
- name: Create function - Java/Maven
1919
href: functions-create-first-java-maven.md
2020
- name: Create function - Python
@@ -65,7 +65,9 @@
6565
href: ../iot-edge/tutorial-deploy-function.md?toc=%2fazure%2fazure-functions%2ftoc.json
6666
- name: Samples
6767
items:
68-
- name: Code samples
68+
- name: Azure Serverless Community Library
69+
href: https://www.serverlesslibrary.net/
70+
- name: Azure Samples
6971
href: https://azure.microsoft.com/resources/samples/?service=functions
7072
- name: Azure CLI
7173
href: functions-cli-samples.md
@@ -74,10 +76,12 @@
7476
- name: Compare versions 1.x and 2.x
7577
href: functions-versions.md
7678
displayName: migrate, migration
77-
- name: Premium plan
78-
href: functions-premium-plan.md
7979
- name: Scale and hosting
8080
href: functions-scale.md
81+
- name: Premium plan
82+
href: functions-premium-plan.md
83+
- name: Deployments
84+
href: functions-deployment-technologies.md
8185
- name: Triggers and bindings
8286
items:
8387
- name: About triggers and bindings
-40.3 KB
Loading

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

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To complete this tutorial:
2828

2929
* Install [Visual Studio Code](https://code.visualstudio.com/download).
3030

31-
* Make sure you have the [latest Azure Functions tools](../functions-develop-vs.md#check-your-tools-version).
31+
* Make sure you have the latest version of the [Azure Functions Core Tools](../functions-run-local.md).
3232

3333
* On a Windows computer, verify you have the [Azure Storage Emulator](../../storage/common/storage-use-emulator.md) installed and running. On a Mac or Linux computer, you must use an actual Azure storage account.
3434

@@ -44,69 +44,61 @@ To complete this tutorial:
4444

4545
1. Install the `durable-functions` npm package by running `npm install durable-functions` in the root directory of the function app.
4646

47-
## Create a Starter Function
47+
## Creating your functions
48+
49+
We'll now create the three functions you need to get started with Durable Functions: an HTTP starter, an orchestrator, and an activity function. The HTTP starter will initiate your entire solution, and the orchestrator will dispatch work to various activity functions.
50+
51+
### HTTP starter
4852

4953
First, create an HTTP triggered function that starts a durable function orchestration.
5054

51-
1. From **Azure: Functions**, choose the Create Function icon.
55+
1. From *Azure: Functions*, choose the **Create Function** icon.
5256

5357
![Create a function](./media/quickstart-js-vscode/create-function.png)
5458

55-
2. Select the folder with your function app project and select the **HTTP trigger** function template.
59+
2. Select the folder with your function app project and select the **Durable Functions HTTP Starter** function template.
5660

57-
![Choose the HTTP trigger template](./media/quickstart-js-vscode/create-function-choose-template.png)
61+
![Choose the HTTP starter template](./media/quickstart-js-vscode/create-function-choose-template.png)
5862

59-
3. Type `HttpStart` for the function name and press Enter, then select **Anonymous** authentication.
63+
3. Leave the default name as `DurableFunctionsHttpStart` and press ****Enter**, then select **Anonymous** authentication.
6064

6165
![Choose anonymous authentication](./media/quickstart-js-vscode/create-function-anonymous-auth.png)
6266

63-
A function is created in your chosen language using the template for an HTTP-triggered function.
64-
65-
4. Replace index.js with the below JavaScript:
66-
67-
[!code-javascript[Main](~/samples-durable-functions/samples/javascript/HttpStart/index.js)]
68-
69-
5. Replace function.json with the below JSON:
70-
71-
[!code-json[Main](~/samples-durable-functions/samples/javascript/HttpStart/function.json)]
72-
7367
We've now created an entry-point into our Durable Function. Let's add an orchestrator.
7468

75-
## Create an Orchestrator Function
76-
77-
Next, you create another function to be the orchestrator. We use the HTTP trigger function template for convenience. The function code itself is replaced by the orchestrator code.
69+
### Orchestrator
7870

79-
1. Repeat the steps from the previous section to create a second function using the HTTP trigger template. This time name the function `OrchestratorFunction`.
71+
Now, we'll create an orchestrator to coordinate activity functions.
8072

81-
2. Open the index.js file for the new function and replace the contents with the following code:
73+
1. From *Azure: Functions*, choose the **Create Function** icon.
8274

83-
[!code-json[Main](~/samples-durable-functions/samples/javascript/E1_HelloSequence/index.js)]
75+
![Create a function](./media/quickstart-js-vscode/create-function.png)
8476

85-
3. Open the function.json file and replace it with the following JSON:
77+
2. Select the folder with your function app project and select the **Durable Functions orchestrator** function template. Leave the name as the default "DurableFunctionsOrchestrator"
8678

87-
[!code-json[Main](~/samples-durable-functions/samples/javascript/E1_HelloSequence/function.json)]
79+
![Choose the orchestrator template](./media/quickstart-js-vscode/create-function-choose-template.png)
8880

8981
We've added an orchestrator to coordinate activity functions. Let's now add the referenced activity function.
9082

91-
## Create an Activity Function
83+
### Activity
9284

93-
1. Repeat the steps from the previous sections to create a third function using the HTTP trigger template. But this time name the function `E1_SayHello`.
85+
Now, we'll create an activity function to actually carry out the work of the solution.
9486

95-
2. Open the index.js file for the new function and replace the contents with the following code:
87+
1. From *Azure: Functions*, choose the **Create Function** icon.
9688

97-
[!code-javascript[Main](~/samples-durable-functions/samples/javascript/E1_SayHello/index.js)]
89+
![Create a function](./media/quickstart-js-vscode/create-function.png)
9890

99-
3. Replace function.json with the below JSON:
91+
2. Select the folder with your function app project and select the **Durable Functions activity** function template. Leave the name as the default "Hello".
10092

101-
[!code-json[Main](~/samples-durable-functions/samples/csx/E1_SayHello/function.json)]
93+
![Choose the activity template](./media/quickstart-js-vscode/create-function-choose-template.png)
10294

10395
We've now added all components needed to start off an orchestration and chain together activity functions.
10496

10597
## Test the function locally
10698

107-
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.
99+
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.
108100

109-
1. On a Windows computer, start the Azure Storage Emulator and make sure that the **AzureWebJobsStorage** property of local.settings.json is set to `UseDevelopmentStorage=true`.
101+
1. On a Windows computer, start the Azure Storage Emulator and make sure that the **AzureWebJobsStorage** property of *local.settings.json* is set to `UseDevelopmentStorage=true`.
110102

111103
For Storage Emulator 5.8 make sure that the **AzureWebJobsSecretStorageType** property of local.settings.json is set to `files`. On a Mac or Linux computer, you must set the **AzureWebJobsStorage** property to the connection string of an existing Azure storage account. You create a storage account later in this article.
112104

@@ -119,15 +111,15 @@ Azure Functions Core Tools lets you run an Azure Functions project on your local
119111

120112
![Azure local output](../media/functions-create-first-function-vs-code/functions-vscode-f5.png)
121113

122-
4. Replace `{functionName}` with `OrchestratorFunction`.
114+
4. Replace `{functionName}` with `DurableFunctionsOrchestrator`.
123115

124-
5. Using a tool like [Postman](https://www.getpostman.com/) or [cURL](https://curl.haxx.se/), send a HTTP POST request to the URL endpoint.
116+
5. Using a tool like [Postman](https://www.getpostman.com/) or [cURL](https://curl.haxx.se/), send an HTTP POST request to the URL endpoint.
125117

126118
The response is the initial result from the HTTP function letting us know the durable orchestration has started successfully. It is not yet the end result of the orchestration. The response includes a few useful URLs. For now, let's query the status of the orchestration.
127119

128120
6. Copy the URL value for `statusQueryGetUri` and paste it in the browser's address bar and execute the request. Alternatively you can also continue to use Postman to issue the GET request.
129121

130-
The request will query the orchestration instance for the status. You should get an eventual response which shows us the instance has completed, and includes the outputs or results of the durable function. It looks like:
122+
The request will query the orchestration instance for the status. You should get an eventual response, which shows us the instance has completed, and includes the outputs or results of the durable function. It looks like:
131123

132124
```json
133125
{

0 commit comments

Comments
 (0)