Azure / Azure/azure-functions-host
Invoke timer triggered function by HTTP
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
I am trying to invoke my timer triggered function by HTTP for testing purposes. I can see that the portal website has a 'Run' button that firstly
retrieves an access token from https://myfunctionappname.scm.azurewebsites.net/api/functions/admin/token and then posts to https://myfunctionappname.azurewebsites.net/admin/functions/myfunctionname using the bearer token containing:
```
"iss": "https://myfunctionappname.scm.azurewebsites.net",
"aud": "https://myfunctionappname.azurewebsites.net/azurefunctions"
```
This returns an HTTP 202 and the function is executed.
I want to perform the same invocation using an automated process without using the portal or my personal azure credentials.
Is it possible to acquire an access token using the deployment credentials or some other method that will allow me to successfully post to the function endpoint?
#### Investigative information
Please provide the following:
- Timestamp:
- Function App version (1.0 or 2.0-beta):
- Function App name:
- Function name(s) (as appropriate):
- Invocation ID:
- Region:
#### Repro steps
Provide the steps required to reproduce the problem:
#### Expected behavior
Provide a description of the expected behavior.
#### Actual behavior
Provide a description of the actual behavior observed.
#### Known workarounds
Provide a description of any known workarounds.
#### Related information
Contributor guide
Assessment
This issue has not been assessed yet.