Azure DevOps provides many tasks. You can choose a new task for a template by clicking on the Add Task (+) button, as shown in the following screenshot:
If you don't find a task that suits your requirements, you can search for a suitable one in the marketplace by clicking on the Marketplace button shown in the preceding screenshot.
C# function has the correct set of tasks required to set up the build definition for Azure Functions as well.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.