From 390b2ec72315306d0f55b8651aebe71a07d2138c Mon Sep 17 00:00:00 2001 From: Yogesh Jagadeesan Date: Mon, 30 Nov 2020 19:38:38 -0800 Subject: [PATCH] [RabbitMQ] Update settings.json with additional values (#997) Added additional parameters for rabbitMQ in settings.json --- Functions.Templates/Bindings/bindings.json | 38 ++++++++++++++++++-- Functions.Templates/Resources/Resources.resx | 15 ++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/Functions.Templates/Bindings/bindings.json b/Functions.Templates/Bindings/bindings.json index cea88e1f9..d60e69402 100644 --- a/Functions.Templates/Bindings/bindings.json +++ b/Functions.Templates/Bindings/bindings.json @@ -116,14 +116,46 @@ ] }, { - "type": "rabbitMQTrigger", + "type": "rabbitMqTrigger", "displayName": "$rabbitMQTrigger_displayName", "direction": "trigger", "enabledInTryMode": true, "documentation": "$content=Documentation\\rabbitMQTrigger.md", "extension": { "id": "Microsoft.Azure.WebJobs.Extensions.RabbitMQ", "version": "1.0.0-beta" - } + }, + "settings": [ + { + "name": "name", + "value": "string", + "defaultValue": "myQueueItem", + "required": true, + "label": "$rabbitmq_name_label", + "help": "$rabbitmq_name_help", + "validators": [ + { + "expression": "^[a-zA-Z][a-zA-Z0-9]{0,127}$", + "errorText": "[variables('parameterName')]" + } + ] + }, + { + "name": "queueName", + "value": "string", + "defaultValue": "myqueue", + "required": true, + "label": "$rabbitmq_queuename_label", + "help": "$rabbitmq_queuename_help" + }, + { + "name": "connectionStringSetting", + "value": "string", + "resource": "AppSetting", + "required": true, + "label": "$rabbitmq_connectionstringsetting_label", + "help": "[variables('appSettingsHelp')]" + } + ] }, { "type": "queueTrigger", @@ -1548,4 +1580,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/Functions.Templates/Resources/Resources.resx b/Functions.Templates/Resources/Resources.resx index db5ca37a4..e45a6b301 100644 --- a/Functions.Templates/Resources/Resources.resx +++ b/Functions.Templates/Resources/Resources.resx @@ -1807,4 +1807,19 @@ function app. SignalR message parameter name + + RabbitMQ connection + + + Name used to identify trigger in code + + + Message parameter name + + + Name of the queue to receive rabbitmq messages from + + + RabbitMQ queue name + \ No newline at end of file