azure-functions-host: HTTP + Timer trigger in function.json results in only Timer trigger being deployed
Issue Summary
I am trying to apply both a timer and HTTP trigger to an Azure Function. When I add the second timer trigger to the first HTTP trigger, the HTTP trigger is no longer valid.
I would like both triggers to be supported simultaneously, according to the documentation for triggers and bindings for Azure Functions.
Investigative information
Please provide the following:
- Timestamp: n/a
- Function App version: 3
- Function App name: trevorwindow
- Function name(s) (as appropriate): HttpTrigger1
- Invocation ID: n/a
- Region: Central US
Repro steps
Provide the steps required to reproduce the problem:
- Create an Azure Function with HTTP Trigger
- Add Timer binding in
function.json
- Deploy the function project
- Go into the Azure Portal and observe that only the timer trigger is shown
- Attempting to manually trigger the function results in HTTP 404 Not Found
Expected behavior
Both the Timer and HTTP triggers are enabled side-by-side.
Actual behavior
The Timer trigger is active, but the HTTP trigger is missing / disabled.
Known workarounds
No known workarounds.
Related information
Provide any related information
- PowerShell
- Bindings used: only built-in HTTP and Timer bindings
Screenshot
Notice how the HTTP trigger is missing from the function triggers.
function.json
{
"bindings": [
{
"schedule": "0 * * * * *",
"name": "myTimer",
"type": "timerTrigger",
"direction": "in"
},
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "Request",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "Response"
}
]
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (6 by maintainers)
Hi @dsghi , you can raise a new feature request in feedback.azure.com-azure-functions