Skip to main content
Version: v1.1.0

Azure EventHubs trigger template (Azure Functions)

Create your first Arcus Azure Functions with Azure EventHubs trigger project

First, install the template from NuGet:

> dotnet new --install Arcus.Templates.AzureFunctions.EventHubs

When installed, the template can be created with shortname: arcus-az-func-eventhubs:

> dotnet new arcus-az-func-eventhubs --name Arcus.Demo.AzureFunctions.EventHubs

Features

Creates a starter worker project with by default configured:

  • Arcus secret store setup with Azure Key Vault secret provider (see more info here on what this includes)
  • Serilog as logging mechanism with default enrichers (version, application, sinking to Application Insights.
  • Dockerfile

Configuration

And additional features available with options:

  • --functions-worker: Configures the type of Azure Functions worker type the project should target.
    • isolated (default): Uses the isolated Azure Functions worker type which runs on a different process as the Azure Function
    • inProcess: Uses the in-process Azure Functions worker type which runs on the same process as run Azure Function For more information on the difference between the two, see Microsoft's documentation.
  • -es|--exclude-serilog: Exclude the Serilog logging infrastructure in the worker project which includes default enrichers (version and application), and sinking to Application Insights.