Azure Service Bus trigger

Operation name

Azure Service Bus trigger

Functional Overview

Azure Service Bus Trigger is a trigger function to execute scripts by sending message from service hosted by Microsoft Azure via Microsoft Azure Service Bus(hereinafter, "Azure Service Bus").
When sending messages, you can pass the value to assign to a script input variable to execute the script.
After running the script, receive message by service hosted by Microsoft Azure to get script output variables or running result of ending status.
To send/receive message from service hosted by Microsoft Azure, use the included C# library.
See " Azure Service Bus trigger tutorials "for more information.

Fire image



  1. From a hosted service of Microsoft Azure, use C# library to send script execution request message to Azure Service Bus.

  2. Azure Service Bus trigger receive performed request message which is sent to Azure Service Bus.

  3. Run the script to pass a value type which is set to script input variable, then get termination message and the script output variable.

  4. Azure Service Bus trigger send messages of script running result to Azure Service Bus.

  5. Receive script execution result message from Azure Service Bus.

Properties

Azure Service Bus trigger settings
Item name Content Remarks
Trigger name Enter the name of the trigger.  
Service namespace Input Service namespace of Azure Service Bus.
  • Case-insensitive.
  • You can not register multiple triggers which have the same [Service namespace] and [Service path].
Service path Input service path for staring service on Azure Service Bus.
  • Case-insensitive.
  • If you make copies of the trigger, in the copied source trigger - [Service path] value, the value such as "(1)" will be assigned.
  • You can not register multiple triggers which have the same [Service namespace] and [Service path].
Default issuer Input Default issuer of Azure Service Bus Services.
 
Default key Input Default key of Azure Service Bus Service.
 
Execution content settings
Item name Content Remarks
Trigger owner Select the owner of the trigger to be created.
  • Can only be selected by users with administrator privileges.
    (Ordinary users can select themselves only.)
Execution user name Select the user to run script specified by [Script].  
Password Type the password associated with the user specified by [Execution user name].  
Service Select the script to run by trigger.
  • Project that was registered as a service displays.
Script Select the script to run by trigger.
  • Script in the service specified by [Service] displays.
Script arguments script input variables that is set in script specified by [Script] displays
  • The script output variable does not display.
  • Refer to " About input output variable" for how to set script input variable on script and use it.
Script arguments / Variable name Script variable name is displayed.
  • Can not be edited.
Script arguments / Type Script variable number type is displayed.
  • Can not be edited.
Script arguments / Value Enter a script variable value.
  • Trigger variables can be specified from "Advanced operations" window.
  • Only trigger variables are passed to the script.
Output variables Script output variables that is set in script specified in [Script] appears.
  • The script input variables does not display.
  • Refer to " About input output variable" for how to set script output variable on script and use it.
Output variables / Variable name Script variable name is displayed.
  • Can not be edited.
Output variables / Type Script variable number type is displayed.
  • Can not be edited.
Execution option settings
For more information about Setting execution option, refer to Execution option settings.

Trigger Variables

By setting a trigger variable to scripts input variable, you can use Azure Service Bus trigger configuration information when running the script.
The script input variables trigger variable is set, you can not specify a value at runtime.

Trigger variable name Value Content Remarks
Service namespace trigger.serviceNamespace [Service namespace] value.
  • Specify Example: ${trigger.serviceNamespace}
Service path trigger.servicePath [Service path] value.
  • Specify example: ${trigger.servicePath}
Default issuer trigger.issuerName [Default issuer] value.
  • Specify example: ${trigger.issuerName}

Specification limit

Main exceptions

Exception Name Causes Solution
AppFabricTriggerException
Fail to create MessageBuffer, and cannot activate trigger.You may have incorrect specification in connection information.
(<Service namespace>-sb.accesscontrol.windows.net)
[Service namespace] is incorrect. Confirm [Service namespace].
AppFabricTriggerException
Fail to create MessageBuffer, and cannot activate trigger.You may have incorrect specification in connection information.
(MessageBuffer could not be created or updated. Error. Response code: 400)
[Service path] is incorrect. Check [Services path].
AppFabricTriggerException
Fail to create MessageBuffer, and cannot activate trigger.You may have incorrect specification in connection information.
(Server returned HTTP response code: 401 for URL: https://<Service namespace>-sb.accesscontrol.windows.net/WRAPv0.9)
[Default Issuer] or [Default Key] is not correct. Confirm [Default Issuer] or [Default Key].

Notes