Skip to content

Commit 0d8cca9

Browse files
author
dksimpson
committed
Functions update for portal UX refresh - batch 14
1 parent 0125380 commit 0d8cca9

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

articles/azure-functions/functions-create-cosmos-db-triggered-function.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use Azure Functions to create a serverless function that is invoked
44

55
ms.assetid: bc497d71-75e7-47b1-babd-a060a664adca
66
ms.topic: how-to
7-
ms.date: 10/02/2018
7+
ms.date: 04/28/2020
88
ms.custom: cc996988-fb4f-47
99
---
1010
# Create a function triggered by Azure Cosmos DB
@@ -38,33 +38,30 @@ Next, you create a function in the new function app.
3838

3939
## Create Azure Cosmos DB trigger
4040

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

43-
![Functions quickstart page in the Azure portal](./media/functions-create-cosmos-db-triggered-function/function-app-quickstart-choose-portal.png)
43+
1. On the **New Function** page, enter `cosmos` in the search field and then choose the **Azure Cosmos DB trigger** template.
4444

45-
1. Choose **More templates** then **Finish and view templates**.
46-
47-
![Functions quickstart choose more templates](./media/functions-create-cosmos-db-triggered-function/add-first-function.png)
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**.
52-
53-
![Install binding extensions](./media/functions-create-cosmos-db-triggered-function/functions-create-cosmos-db-trigger-portal.png)
45+
![Functions page in the Azure portal](./media/functions-create-cosmos-db-triggered-function/function-choose-cosmos.png)
5446

5547
1. Configure the new trigger with the settings as specified in the table below the image.
5648

5749
![Create the Azure Cosmos DB triggered function](./media/functions-create-cosmos-db-triggered-function/functions-cosmosdb-trigger-settings.png)
5850

5951
| Setting | Suggested value | Description |
6052
| ------------ | ---------------- | ------------------------------------------ |
61-
| **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. |
6555
| **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.
6663

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**.
6865

6966
![Cosmos DB function template in C#](./media/functions-create-cosmos-db-triggered-function/function-cosmosdb-template.png)
7067

38.9 KB
Loading
-32.1 KB
Loading

0 commit comments

Comments
 (0)