Do events in serverless.yml have any meaning for a C# Azure function

I’ve used serverless with AWS Lambda before, and because the Lambda code has no idea what triggers it, the events in the serverless.yml file make perfect sense.

For a C# app deployed to Azure functions, each event is an attribute on the function itself. I noticed though that the sample application created with serverless create --template azure-csharp --path myService lists those same events in the serverless.yml file.

What is the purpose of events in the serverless.yml file for a C# Azure function application? Are they required? I can’t quite wrap my head around why they are there given the code itself defines the same triggers.