Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I trigger my function on-demand so I can test it? #54375

Closed
rigdern opened this issue May 7, 2020 — with docs.microsoft.com · 5 comments
Closed

How do I trigger my function on-demand so I can test it? #54375

rigdern opened this issue May 7, 2020 — with docs.microsoft.com · 5 comments

Comments

Copy link

rigdern commented May 7, 2020

When testing, it's inconvenient to wait for the timer to trigger. How can I trigger the function on-demand? It would be nice for the documentation to cover this for both local deployments and Azure deployments.

For functions deployed in Azure, from a lot of searching, I learned that this can be done on the "Code + Test" page for the Azure Function.

Perhaps this can be solved by including a link to the page Manually run a non HTTP-triggered function

Adam Comella
Microsoft Corp.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@DixitArora-MSFT
Copy link
Contributor

Hi @rigdern Thanks for reaching out. We will review and update as appropriate.

@DixitArora-MSFT
Copy link
Contributor

@rigdern There is a already a public doc which you have already mentioned.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http

To be more precise this one is even more beneficial.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function

I don't think there is a doc change required at this moment. For now will proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@rigdern
Copy link
Author

rigdern commented May 13, 2020

@DixitArora-MSFT I believe this issue should be reopened.

My feedback was about the page Timer trigger for Azure Functions.

My suggestion is that the page Timer trigger for Azure Functions should link to Manually run a non HTTP-triggered function. This will make it easier for developers to find this information.

Rationale for My Suggestion

This suggestion comes from a pain point in my personal experience using Azure Functions. I thoroughly read the doc pages related to the Timer trigger trying to figure out how to run them on-demand. I couldn't figure it out. It was only days later that I accidentally came across the doc page Manually run a non HTTP-triggered function. I believe my suggested doc change will save future developers from experiencing this pain point.

@DixitArora-MSFT
Copy link
Contributor

@rigdern I have assigned this to content author for further review and update as appropriate.

@craigshoemaker
Copy link
Contributor

Thanks, @rigdern - The link is now added to the page. The public version will update during our next content refresh.

#please-close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants