Why Azure function class is static?
- By default, whenever you create an Azure Function, it comes in a template with a static class and a static method. Microsoft enabled instance methods for Azure Functions, now we are able to have non-static classes and methods for our functions. If you want to use Dependency Injection via constructor,you can use non-static.
- The samples don't do any complex job, so the default static method is fine for them. Based on your requirement you can use non-static method.
- Static class is not a requirement, but a sensible default.
- To keep the class simple, I suggest you keep the class static.