How to use @azure/arm-servicebus - 7 common examples

To help you get started, we’ve selected a few @azure/arm-servicebus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / functions.ts View on Github external
public async get_endpoint(nsName: string, rg: string | null = null): Promise {

        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new ServiceBusManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);

        let response = await client.namespaces.get(resource_group, nsName);
        // client.namespaces.listKeys(resource_group,)

        return response.serviceBusEndpoint || "";
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / functions.ts View on Github external
public async get_secondary_connection_string(nsName: string, authRuleName: string, rg: string | null = null) : Promise {

        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new ServiceBusManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);

        let response = await client.namespaces.listKeys(resource_group, nsName, authRuleName);

        return response.secondaryConnectionString || "";
    }
}
github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / functions.ts View on Github external
public async get_secondary_key(nsName: string, authRuleName: string, rg: string | null = null) : Promise {

        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new ServiceBusManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);

        let response = await client.namespaces.listKeys(resource_group, nsName, authRuleName);

        return response.secondaryKey || "";
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / functions.ts View on Github external
public async get_primary_connection_string(nsName: string, authRuleName: string, rg: string | null = null) : Promise {

        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new ServiceBusManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);

        let response = await client.namespaces.listKeys(resource_group, nsName, authRuleName);

        return response.primaryConnectionString || "";
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / functions.ts View on Github external
public async get_primary_key(nsName: string, authRuleName: string, rg: string | null = null) : Promise {

        let util = IngredientManager.getIngredientFunction("coreutils", this.context);
        let resource_group = rg || await util.resource_group();

        const client = new ServiceBusManagementClient(this.context.AuthToken, this.context.Environment.authentication.subscriptionId);

        let response = await client.namespaces.listKeys(resource_group, nsName, authRuleName);

        return response.primaryKey || "";
    }
github tmobile / jazz / builds / jazz_azure-create-service / components / ClientFactory.js View on Github external
constructor(clientId, clientSecret, tenantId, subscriptionId) {

        this.clientId = clientId;
        this.clientSecret = clientSecret;
        this.tenantId = tenantId;
        this.subscriptionId = subscriptionId;

        this.classList = new Map();
        this.classList.set('WebSiteManagementClient', WebSiteManagementClient);
        this.classList.set('ResourceManagementClient', ResourceManagementClient);
        this.classList.set('StorageManagementClient', StorageManagementClient);
        this.classList.set('ApiManagementClient', ApiManagementClient);
        this.classList.set('CdnManagementClient', CdnManagementClient);
        this.classList.set('CosmosDBManagementClient', CosmosDBManagementClient);
        this.classList.set('EventHubManagementClient', EventHubManagementClient);
        this.classList.set('ServiceBusManagementClient', ServiceBusManagementClient);

        this.instanceList = new Map();
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-service-bus-namespace / src / plugin.ts View on Github external
constructor(name: string, ingredient: IIngredient, ctx: DeploymentContext) {
        super(name, ingredient, ctx);

        this._sbmClient = new ServiceBusManagementClient(this._ctx.AuthToken, this._ctx.Environment.authentication.subscriptionId);
    }

@azure/arm-servicebus

A generated SDK for ServiceBusManagementClient.

MIT
Latest version published 1 year ago

Package Health Score

76 / 100
Full package analysis

Popular @azure/arm-servicebus functions