I have an Azure Function that runs on a timer trigger once a week. This works great and as expected, but about once or twice a month, a user needs this function to run upon request, so I need to do a post to the function to trigger it - much like you can do from the Azure portal.
Looking at the Azure portal, a http post request is being done to the function like:
https://{funcapp}.azurewebsites.net/admin/functions/{func}
However, if I do this from Postman, I get a Http 401 response. How would I go about to do this request?
One option I have a to rather change the trigger to a queue and have a second function run on the weekly basis that would add a message to the queue, but this seems a bit excessive to me.