Manually Run Timer-Triggered Azure Functions

Manually Run Timer-Triggered Azure Functions
Photo by AgĂȘ Barros / Unsplash

When developing and testing Azure Functions, it may be necessary to manually trigger the deployed function for testing purposes. I am simply documenting this here so that it is easier to find when I inevitably need it again.

Microsoft has a great write up on how to do this, but they show the process with Postman, which is slightly more complicated than I think is necessary in most cases. I suggest you read through their write-up to understand the process. But if you want a simpler option, here is the curl command to get the same result.

curl -d "{}" -H "x-functions-key:<_master>" -H "Content-Type:application/json" https://<function-app-name>.azurewebsites.net/admin/functions/<function-name> -v