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/functions-create-cosmos-db-triggered-function.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Use Azure Functions to create a serverless function that is invoked
4
4
5
5
ms.assetid: bc497d71-75e7-47b1-babd-a060a664adca
6
6
ms.topic: how-to
7
-
ms.date: 10/02/2018
7
+
ms.date: 04/28/2020
8
8
ms.custom: cc996988-fb4f-47
9
9
---
10
10
# Create a function triggered by Azure Cosmos DB
@@ -38,33 +38,30 @@ Next, you create a function in the new function app.
38
38
39
39
## Create Azure Cosmos DB trigger
40
40
41
-
1.Expand your function app and click the **+** button next to **Functions**. If this is the first function in your function app, select **In-portal**then **Continue**. Otherwise, go to step three.
41
+
1.In your function app, select **Functions** from the left menu, and then select **Add**from the top menu.
42
42
43
-

43
+
1. On the **New Function** page, enter `cosmos`in the search field and then choose the **Azure Cosmos DB trigger** template.
44
44
45
-
1. Choose **More templates** then **Finish and view templates**.
46
-
47
-

48
-
49
-
1. In the search field, type `cosmos` and then choose the **Azure Cosmos DB trigger** template.
50
-
51
-
1. If prompted, select **Install** to install the Azure Cosmos DB extension in the function app. After installation succeeds, select **Continue**.
|**Name**| Default | Use the default function name suggested by the template.|
62
-
|**Azure Cosmos DB account connection**| New setting | Select **New**, then choose your **Subscription**, the **Database account** you created earlier, and **Select**. This creates an application setting for your account connection. This setting is used by the binding to connection to the database. |
63
-
|**Container name**| Items | Name of container to be monitored. |
64
-
|**Create lease container if it doesn't exist**| Checked | The container doesn't already exist, so create it. |
53
+
|**New Function**| Accept the default name | The name of the function. |
54
+
|**Cosmos DB account connection**| Accept the default new name | Select **New**, the **Database Account** you created earlier, and then **OK**. This action creates an application setting for your account connection. This setting is used by the binding to connection to the database. |
65
55
|**Database name**| Tasks | Name of database with the container to be monitored. |
56
+
|**Collection name**| Items | Name of container to be monitored. |
57
+
|**Collection name for leases**| leases | Name of the collection to store the leases. |
58
+
|**Create lease container if it does not exist**| Yes | Because the container doesn't already exist, so create it. |
59
+
60
+
1. Select **Create Function**.
61
+
62
+
Azure creates the Cosmos DB trigger function.
66
63
67
-
1.Click **Create** to create your Azure Cosmos DB triggered function. After the function is created, the template-based function code is displayed.
64
+
1.To display the template-based function code, select **Code + Test**.
68
65
69
66

0 commit comments