Azure Service Bus Modules for Node.js

Azure Service Bus is an asynchronous messaging cloud platform that enables you to send data between decoupled systems.

Learn more about Azure Service Bus.

Management package

Install the npm module

Use npm to install the Azure Service Bus module for Node.js

npm install azure-arm-sb

Example

This example creates a client and then lists all Service Bus namespaces associated with a given subscription.

const msRestAzure = require('ms-rest-azure');
const ServicebusManagement = require('azure-arm-sb');

const subscriptionId = 'your-subscription-id';

msRestAzure.interactiveLogin().then(credentials => {
    const client = new ServicebusManagement(credentials, subscriptionId);
    client.namespaces.listBySubscription().then(namespaces => {
        namespaces.map(ns => {
            console.log(`found ns : ${ns.name}`);
        });
    });
});

Samples

Explore more sample Node.js code you can use in your apps.