Questions tagged [azure-node-sdk]
89 questions
0
votes
1 answer
Get Azure REST access token in Postman pre-request script
Does anyone know what is the best way to get Azure access token in Postman pre-request script? Trying to get the token for current logged in user without having to create a service principal, which is described in How to Call the Azure REST APIs…

dushyantp
- 4,398
- 7
- 37
- 59
0
votes
1 answer
How to add a message property in node azure iot sdk
With the azure C sdk it's possible to add properties to the message envelope using Map_AddOrUpdate(propMap, "propKey", propText). Is there something similar? I'm using
const Protocol = require('azure-iot-device-mqtt').Mqtt;
const Client =…

farhadf
- 1,918
- 3
- 19
- 27
0
votes
1 answer
Azure Storage Javascript SDK V12 creating append blob issue
When I create manually append blob in portal and try this:
const blockBlobClient = containerClient.getAppendBlobClient('appendtest.csv');
const uploadBlobResponse = await blockBlobClient.appendBlock('test,','test,'.length);
works like a charm.
But…

MatnikR
- 181
- 2
- 16
0
votes
0 answers
Service Bus Queue. Test with Jmeter fails after 1000 messages in queue. It takes time as well
I have written code (Node Js) by which i receive a message and send it
to the Service Bus Queue. But when i test it with 5000 messages in a
loop it fails with only a few over 1000 messages in queue.
It fails with the concurrency
Here is my…

Amaan Imtiyaz
- 254
- 6
- 16
0
votes
2 answers
How to create ConsumerGroups for Eventhub programatically using nodejs in Azure?
How to create consumergroups in eventhub using nodejs in Azure?
I tried to replicate what .net SDK offers, it did not work.
const { NamespaceManager } = require("@azure/service-bus"); …

Kannaiyan
- 12,554
- 3
- 44
- 83
0
votes
2 answers
Azure : message is not getting pushed in Topics and retrieved as subscription
I have created a topic and subscription in azure. when i try to push my message in topic and retrieve it with subscription i cannot get the messages. Are messages stored in the queue. Are my messages not getting published.
Push in the topic code
…

Amaan Imtiyaz
- 254
- 6
- 16
0
votes
1 answer
Azure Event Grid and Azure Event Hub
I am using Azure Services with node js. I am pushing and getting the messages from service bus. I want to know what is the role that of event grid , event hub. When i create them they want end point what is that.
And how should i proceed

Amaan Imtiyaz
- 254
- 6
- 16
0
votes
1 answer
Correct way to process batches using receiveMessages
We are using the @azure/service-bus package to process message batches from multiple topics.
The code we use to take 20 messages from the topic every 2 seconds looks like this.
let isProcessing: boolean = false;
setInterval(async ()…

Steoates
- 3,058
- 5
- 27
- 43
0
votes
2 answers
Is there something like AzureServiceTokenProvider for node? Something that can handle multiple authentication mechanisms?
In C# I can use AzureServiceTokenProvider which allows me to access an Azure Key Vault in a number of ways. If I'm running locally it will use my credentials, if I'm running in Azure it will use MSI, it will look for environment variables, etc. It's…

Erick T
- 7,009
- 9
- 50
- 85
0
votes
1 answer
How to send email using azure JavaScript function?
its my index.js file code.which i have taken a refrence from this link Javascript Azure Function to send email using SendGrid
module.exports = async function (context, req) {
var message = {
"personalizations": [ { "to": [ { "email":…

swapnil jain
- 252
- 1
- 3
- 22
0
votes
1 answer
Best way to periodically run power-shell script on Azure Virtual Machine from other VM inside subscription
Trying to use Azure nodejs SDK and tested virtual machine run command as mentioned in Get StdOut from RunCommand using Azure VM Javascript SDK.
Performance of this call is poor. Does user have permissions to change the timeout value for the Virtual…

Sk0000
- 31
- 1
- 1
- 5
0
votes
1 answer
Retry logic and connection pooling for Azure sql Db with nodejs
I have a bot built using botbuilder Sdk V3 that needs to make azure sql Db calls upon user's questions. We have about 10k users who might be accessing this bot in production making concurrent requests (not all 10k but few ) few times per day.
I am…

vijay
- 109
- 11
0
votes
1 answer
Not able to specify China Region for Azure Nodejs SDK
I'm trying to interact with Azure China Resources with Nodejs.
But could not find out how to authenticate the application with Azure China with nodejs SDK.
Tried @azure/arm-storage
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import {…

Karl Xu
- 315
- 5
- 15
0
votes
1 answer
Configure MAX_OPERATION_TIMEOUT
I would like to set the MAX_OPERATION_TIMEOUT, which is set to 4 mins per default in the azure-iot-device/lib/internal_client.js, to another custom value. How can I access that property (e.g. using the ModuleClient/ModuleTwin)?

Flo
- 31
- 4
0
votes
1 answer
Azure service bus: with RootManageSharedAccessKey, still complains 'Listen' claim(s) required?
I have an error-handler passed to a service bus client "receive" function and it is firing after setup as follows:
const ns = Namespace.createFromConnectionString(connectionString);
const client = ns.createQueueClient(queueName);
const…

yen
- 1,769
- 2
- 15
- 43