microsoftAzure Service Bus (Legacy)

Overview

The Azure Service Bus Book integrates with Azure Service Bus to simplify messaging and event-driven workflows. Using natural language commands, you can send, receive, and manage messages between applications.

Prerequisites

  1. Azure Subscription: You need to have an active Azure subscription. If you do not have one, you can sign up for a free Azure account to get started.

  2. Azure Service Bus Namespace: Ensure that you have created an Azure Service Bus namespace. This namespace will contain your queues and topics.

  3. Queue Creation: Create the necessary queues within your Azure Service Bus namespace where messages will be sent and received.

  4. Connection String: Obtain the connection string for your Azure Service Bus namespace. This can be found in the Azure portal under your Service Bus namespace settings.

Required Credentials

To connect to the Azure Service Bus Book, you will need the following credentials:

  1. Namespace Connection String: The connection string for your Azure Service Bus namespace. This string is unique to your namespace and can be found in the Azure portal.

  2. Queue Name: The name of the queue within your Azure Service Bus namespace where messages will be sent or received.

Connecting to the Azure Service Bus Book in Kognitos

  1. Navigate to Books -> All Books.

  2. Search for Azure Service Bus and then click on it.

  3. Click on Add Connection.

  4. Enter your credentials when prompted.

Sending Messages to Azure Service Bus Queue

Sending messages to an Azure Service Bus queue is a fundamental operation when integrating Azure Service Bus with Kognitos. This section covers how to send messages to a specified queue.

Action Description: Sends a message to an Azure Service Bus queue.

Required Concepts:

  • Message (string): The message to be sent.

  • Queue name (string): The name of the Azure Service Bus queue the message will be sent to.

Language Example:

This command sends the message "Hello, World!" to the specified queue "myqueue".

Receiving Messages from Azure Service Bus Queue

Receiving messages from an Azure Service Bus queue is another core functionality when integrating Azure Service Bus with Kognitos. This section covers how to receive the latest message from a specified queue.

Action Description: Receives the latest message from an Azure Service Bus queue.

Required Concepts:

  • Queue name (string): The name of the Azure Service Bus queue from which to receive the message.

Output Concepts:

  • Message (string): The latest message received from the specified Azure Service Bus queue.

Language Example:

This command receives the latest message from the specified queue "myqueue" and outputs the message.

Last updated

Was this helpful?