Open ianrandell-sh opened 4 years ago
additionally, setting the values to null in c# does not work
[ServiceBusTrigger(null, Connection = null)]
the function.json (from the zip in .serverless) is missing the values entirely:
"bindings": [
{
"type": "serviceBusTrigger",
"isSessionsEnabled": false,
"name": "message"
}
],
FYI the workaround I'm using is to use the %% syntax for the c# queue prop:
[ServiceBusTrigger("%SERVICE_BUS_QUEUE_NAME%", Connection = "SERVICE_BUS_CONNECTION")]
and then define the queue name as env var in the serverless.yml:
environment:
SERVICE_BUS_CONNECTION: '...redacted...'
SERVICE_BUS_QUEUE_NAME: '...redacted...'
This is a Bug Report
Description
What went wrong? the deployed function.json does not include the queueName or connection in the serverless.yml. Instead it includes the queueName and connection as defined in the c# ServiceBusTrigger attribute
What did you expect should have happened? I expected the serverless plugin to set the values in function.json to whats defined in the yaml
What was the config you used?
serverless.yml:
c#:
Resulting function.json (taken from the azure portal via func -> code+test):
Similar or dependent issues:
485
Additional Data