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
#Customer intent: As an Azure Functions developer, I want learn how to create an Event Grid-based trigger on a Blob Storage container so that I can get a more rapid response to changes in the container.
@@ -88,7 +88,7 @@ When you create a Blob Storage-triggered function using Visual Studio Code, you
88
88
|Prompt|Action|
89
89
|--|--|
90
90
|**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. |
91
+
|**Select a .NET runtime**| Select `.NET 6.0 Isolated LTS` for running in an [isolated worker process](dotnet-isolated-process-guide.md) or `.NET 6.0 LTS` for [in-process](functions-dotnet-class-library.md). |
92
92
|**Select a template for your project's first function**| Select `Azure Blob Storage trigger`. |
93
93
|**Provide a function name**| Enter `BlobTriggerEventGrid`. |
94
94
|**Provide a namespace**| Enter `My.Functions`. |
@@ -156,27 +156,27 @@ To use the Event Grid-based Blob Storage trigger, your function requires at leas
156
156
::: zone pivot="programming-language-csharp"
157
157
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
298
```http
@@ -317,12 +336,17 @@ The endpoint used in the event subscription is made up of three different parts,
317
336
| --- | --- |
318
337
| 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
338
| 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. |
339
+
| 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
340
322
341
The following screenshot shows an example of how the final endpoint URL should look when using a Blob Storage trigger named `BlobTriggerEventGrid`:
@@ -368,7 +392,7 @@ An event subscription, powered by Azure Event Grid, raises events based on chang
368
392
| **Name** | *myBlobLocalNgrokEventSub* | Name that identifies the event subscription. You can use the name to quickly find the event subscription. |
369
393
| **Event Schema** | **Event Grid Schema** | Use the default schema for events. |
370
394
| **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*|
395
+
|**Filter to Event Types**|*Blob Created*|
372
396
|**Endpoint Type**|**Web Hook**| The blob storage trigger uses a web hook endpoint. You would use Azure Functions for an Event Grid trigger. |
373
397
|**Endpoint**| Your ngrok-based URL endpoint | Use the ngrok-based URL endpoint that you determined earlier. |
374
398
@@ -449,9 +473,16 @@ You'll include this value in the query string of new endpoint URL.
449
473
Create a new endpoint URL for the Blob Storage trigger based on the following example:
Copy file name to clipboardExpand all lines: includes/functions-bindings-csharp-intro.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,5 +8,5 @@ ms.author: glenga
8
8
9
9
A C# function can be created by using one of the following C# modes:
10
10
11
-
*[In-process class library](../articles/azure-functions/functions-dotnet-class-library.md): Compiled C# function that runs in the same process as the Functions runtime. In a variation of this model, Functions can be run using [C# scripting](../articles/azure-functions/functions-reference-csharp.md), which is supported primarily for C# portal editing. Extensions for in-process functions use `Microsoft.Azure.WebJobs.Extensions.*` namespaces.
12
11
*[Isolated worker process class library](../articles/azure-functions/dotnet-isolated-process-guide.md): Compiled C# function that runs in a worker process that's isolated from the runtime. Isolated worker process is required to support C# functions running on LTS and non-LTS versions .NET and the .NET Framework. Extensions for isolated worker process functions use `Microsoft.Azure.Functions.Worker.Extensions.*` namespaces.
12
+
*[In-process class library](../articles/azure-functions/functions-dotnet-class-library.md): Compiled C# function that runs in the same process as the Functions runtime. In a variation of this model, Functions can be run using [C# scripting](../articles/azure-functions/functions-reference-csharp.md), which is supported primarily for C# portal editing. Extensions for in-process functions use `Microsoft.Azure.WebJobs.Extensions.*` namespaces.
0 commit comments