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-event-grid-blob-trigger.md
+45-13Lines changed: 45 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,10 +85,11 @@ When you create a Blob Storage-triggered function using Visual Studio Code, you
85
85
1. At the prompts, provide the following information:
86
86
87
87
::: zone pivot="programming-language-csharp"
88
+
# [In-process](#tab/in-process)
88
89
|Prompt|Action|
89
90
|--|--|
90
91
|**Select a language**| Select `C#`. |
91
-
|**Select a .NET runtime**| Select `.NET 6.0 LTS`. Event-driven blob triggers aren't yet supported when running in an isolated worker process. |
92
+
|**Select a .NET runtime**| Select `.NET 6.0 Isolated LTS` for running in an isolated worker process or `.NET 6.0 LTS` for in-process. |
92
93
|**Select a template for your project's first function**| Select `Azure Blob Storage trigger`. |
93
94
|**Provide a function name**| Enter `BlobTriggerEventGrid`. |
94
95
|**Provide a namespace**| Enter `My.Functions`. |
@@ -156,27 +157,27 @@ To use the Event Grid-based Blob Storage trigger, your function requires at leas
156
157
::: zone pivot="programming-language-csharp"
157
158
To upgrade your project with the required extension version, in the Terminal window, run the following command: [dotnet add package](/dotnet/core/tools/dotnet-add-package)
::: zone pivot="programming-language-javascript,programming-language-powershell,programming-language-python,programming-language-java"
279
299
```http
@@ -317,12 +337,17 @@ The endpoint used in the event subscription is made up of three different parts,
317
337
| --- | --- |
318
338
| Prefix and server name | When your functionruns locally, the server name with an `https://` prefix comes from the **Forwarding** URL generated by *ngrok*. In the localhost URL, the *ngrok* URL replaces `http://localhost:7071`. When running in Azure, you'll instead use the published function app server, which is usually in the form `https://<FUNCTION_APP_NAME>.azurewebsites.net`. |
319
339
| Path | The path portion of the endpoint URL comes from the localhost URL copied earlier, and looks like `/runtime/webhooks/blobs` for a Blob Storage trigger. The path for an Event Grid trigger would be `/runtime/webhooks/EventGrid` |
320
-
| Query string | The `functionName=BlobTriggerEventGrid` parameterin the query string sets the name of the function that handles the event. For functions other than C#, the function name is qualified by `Host.Functions.`. If you used a different name for your function, you'll need to change this value. An access key isn't required when running locally. When running in Azure, you'll also need to include a `code=` parameter in the URL, which contains a key that you can get from the portal. |
340
+
| Query string | For all languages including .NET Isolated the `functionName=Host.Functions.BlobTriggerEventGrid` parameter, except for .NET In-process which should be `functionName=BlobTriggerEventGrid` in the query string sets the name of the function that handles the event. If you used a different name for your function, you'll need to change this value. An access key isn't required when running locally. When running in Azure, you'll also need to include a `code=` parameter in the URL, which contains a key that you can get from the portal. |
321
341
322
342
The following screenshot shows an example of how the final endpoint URL should look when using a Blob Storage trigger named `BlobTriggerEventGrid`:
@@ -368,7 +393,7 @@ An event subscription, powered by Azure Event Grid, raises events based on chang
368
393
| **Name** | *myBlobLocalNgrokEventSub* | Name that identifies the event subscription. You can use the name to quickly find the event subscription. |
369
394
| **Event Schema** | **Event Grid Schema** | Use the default schema for events. |
370
395
| **System Topic Name** | *samples-workitems-blobs* | Name for the topic, which represents the container. The topic is created with the first subscription, and you'll use it for future event subscriptions. |
371
-
|**Filter to Event Types**|*Blob Created*<br/>*Blob Deleted*|
396
+
|**Filter to Event Types**|*Blob Created*|
372
397
|**Endpoint Type**|**Web Hook**| The blob storage trigger uses a web hook endpoint. You would use Azure Functions for an Event Grid trigger. |
373
398
|**Endpoint**| Your ngrok-based URL endpoint | Use the ngrok-based URL endpoint that you determined earlier. |
374
399
@@ -449,9 +474,16 @@ You'll include this value in the query string of new endpoint URL.
449
474
Create a new endpoint URL for the Blob Storage trigger based on the following example:
0 commit comments