skip to content
Alvin Lucillo

Create Azure function locally

/ 1 min read

Yesterday, I created an initial Azure function app. Note that an Azure function app is not yet the Azure function, which is what I will create in this journal. Below, func1 is created, following the option prompts. The function should be created under functions folder: func1.js.

tree
.
├── host.json
├── local.settings.json
├── package.json
└── src
    └── functions
        └── func1.js

3 directories, 4 files
func new
Select a number for template:
1. Azure Blob Storage trigger
2. Azure Cosmos DB trigger
3. Durable Functions entity
4. Durable Functions orchestrator
5. Azure Blob Storage trigger (using Event Grid)
6. Azure Event Grid trigger
7. Azure Event Hub trigger
8. HTTP trigger
9. Azure Queue Storage trigger
10. Azure Service Bus Queue trigger
11. Azure Service Bus Topic trigger
12. Timer trigger
13. Dapr Publish Output Binding
14. Dapr Service Invocation Trigger
15. Dapr Topic Trigger
Choose option: 12

Timer trigger
Function name: [timerTrigger] func1
The function "func1" was created successfully from the "Timer trigger" template.