Azure Functions v3 sample project with DI-container and Github action deploy
A sample Azure Functions 3.0 project with dependency injection, github action deploy routine, ready for local development.
Azure Functions will run locally like they run in Azure, if you want to start a timer on demand you can trigger it with a script or use Postman to send requests. Azure blob storage credentials can be added to local.settings.json if you don’t like the additional step of starting Azurite manually.
# Prerequisites
npm i -g azure-functions-core-tools@3 --unsafe-perm true
npm i -g azurite
# Build the project
dotnet build
# Run the blob storage emulator
azurite-blob
# Start function host with a single active function
func start --functions HorseTimer
# While function host is running, you can trigger functions with a POST request
http://localhost:7071/admin/functions/HorseTimer
This works just like it does in ASP.NET Core applications