-
Notifications
You must be signed in to change notification settings - Fork 191
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
Split Service Bus binding into two #134
Comments
So we have two options for changing this:
Thoughts? Example bindings.json snippet: {
"type": "serviceBusTrigger",
"displayName": "Azure Service Bus",
"direction": "trigger",
"defaultParameterName": "myQueueItem",
"parameterNamePrompt": "Message parameter name",
"settings": [
{
"name": "queueName",
"value": "string",
"defaultValue": "samples-input",
"required": true,
"label": "Queue name",
"help": "This is the name of the queue that messages will be read from."
},
{
"name": "topicName",
"value": "string",
"defaultValue": "samples-input",
"required": true,
"label": "Topic name",
"help": "This is the name of the queue that messages will be read from."
},
{
"name": "connection",
"value": "string",
"resource": "ServiceBus",
"required": true,
"label": "Service Bus connection",
"help": "This is the connection string for your Service Bus account. Make sure that it has Listen rights."
}
],
"rules": [
{
"type": "exclusivity",
"values": [
{
"value": "queueName",
"displayName": "Service Bus Queue"
},
{
"value": "topicName",
"displayName": "Service Bus Topic"
}
],
"label": "Service Bus message type",
"help": "This is the type of Servce Bus message. This lets you choose between using Queues or Topics."
}
]
}, |
I have some changes in proposed format: { |
I checked in change in the portal which supports this: |
Currently, the service bus binding only exposes a parameter for the queue, and since the portal doesn't have a mechanism to pick between two required parameters, we should split the binding template into two, one for queues (Service Bus Queue) and one for topics (Service Bus Topic)
The text was updated successfully, but these errors were encountered: