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/event-grid/auth0-log-stream-blob-storage.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ This article shows you how to send Auth0 events to Azure Blob Storage via Azure
15
15
16
16
## Create an Azure function
17
17
1. Create an Azure function by following instructions from the **Create a local project** section of [Quickstart: Create a JavaScript function in Azure using Visual Studio Code](../azure-functions/create-first-function-vs-code-node.md?pivots=nodejs-model-v3).
18
-
1. Select **Azure Event Grid trigger** for the function template instead of **HTTP trigger** as mentioned in the quickstart.
19
-
1. Continue to follow the steps, but use the following **index.js** and **function.json** files.
18
+
1. Select **Azure Event Grid trigger** for the function template instead of **HTTP trigger** as mentioned in the quickstart.
19
+
1. Continue to follow the steps, but use the following **index.js** and **function.json** files.
20
20
21
-
> [!IMPORTANT]
22
-
> Update the **package.json** to include `@azure/storage-blob` as a dependency.
21
+
> [!IMPORTANT]
22
+
> Update the **package.json** to include `@azure/storage-blob` as a dependency.
23
23
24
-
**function.json**
24
+
**function.json**
25
25
26
-
```json
26
+
```json
27
27
{
28
28
"bindings": [{
29
29
"type": "eventGridTrigger",
@@ -41,11 +41,11 @@ This article shows you how to send Auth0 events to Azure Blob Storage via Azure
41
41
}
42
42
]
43
43
}
44
-
```
44
+
```
45
45
46
-
**index.js**
46
+
**index.js**
47
47
48
-
```javascript
48
+
```javascript
49
49
// Event Grid always sends an array of data and may send more
50
50
// than one event in the array. The runtime invokes this function
51
51
// once for each array element, so we are always dealing with one.
@@ -56,7 +56,8 @@ This article shows you how to send Auth0 events to Azure Blob Storage via Azure
1. Create an Azure function app using instructions from [Quick function app create](../azure-functions/functions-develop-vs-code.md?tabs=csharp#quick-function-app-create).
61
62
1. Deploy your function to the function app on Azure using instructions from [Deploy project files](../azure-functions/functions-develop-vs-code.md?tabs=csharp#republish-project-files).
0 commit comments