Questions tagged [azure-node-sdk]
89 questions
0
votes
1 answer
Azure VM shutdown schedule via nodejs SDK
I’m writing an Azure Function (nodejs) that will create a VM shutdown schedule on VMs that don’t have one.
I am having an issue however listing schedules. All of the list* methods of the Schedules interface require the labName parameter, however, I…

David O'Brien
- 813
- 1
- 9
- 18
0
votes
1 answer
Azure IoT hub Node jS Number of retrys to sendEvent , set the timeout period
I am using MQTT protocol to send data . I have set NoRetry() as i wanted to go into callback if any network failures are there. but it is coming only after 4 min . can i change that timeout period to some milli seconds when i am in NoRetry() .…

Amjath Khan
- 185
- 11
0
votes
1 answer
What is the best way to get the latest record belonging to a partition key using the azure-storage node library?
Can someone recommend the best solution for getting the latest record belonging to a partition key when using the azure-storage library in Node? Since there is no .orderBy() option... what is the best approach?
In C# I would probably do something…

Dana Epp
- 509
- 1
- 5
- 13
0
votes
2 answers
No storage account found when trying to setup File Upload in Iot Hub
I am trying to associate a storage container with an IoT Hub but am having trouble doing so. The goal here is to connect a storage container in order to enable File Uploading in the IoT Hub.
I've followed the documentation here
you must first link…

iammatthew2
- 639
- 2
- 7
- 20
0
votes
1 answer
how to use Azure node sdk to create a container with azure private ACR image
I have following piece of code trying to create a Azure container instance with private ACR image using Azure node sdk.
let container = new client.models.Container();
let acrcredentials = new…

explorer
- 737
- 1
- 8
- 23
0
votes
1 answer
Error: ENOENT: no such file or directory, read
I am using createBlockBlobFromLocalFile() function to upload the file to azure-storage. Here is the code,
var azureStorage = require('azure-storage');
var blobUri = "http://accountname.blob.core.windows.net";
var blobService =…

skr07
- 707
- 1
- 10
- 36
0
votes
1 answer
azure createBlockBlobFromLocalFile shows no such file or directory
I am trying to uploading file using azure-storage function createBlockBlobFromLocalFile(). But when i upload the file i am getting error like
{ Error: ENOENT: no such file or directory, stat 'D:\path\task1.txt'
errno: -4058, code: 'ENOENT', …

skr07
- 707
- 1
- 10
- 36
0
votes
1 answer
How to get callback information on how many notifications sent to which user?
I am using Azure Notification Hub for sending mobile notification from Node.js. I am using Tags when I send Notification, I need to store how many users received notification. But in the callback, I am not getting any information.
Is there any way…

Furqan Misarwala
- 1,743
- 6
- 26
- 53
0
votes
1 answer
Azure iot query returns incorrect "lastActivityTime"
I have an azure iot hub with connected devices that made activities.
If I check a specific device twin in azure site, I will get the correct "connectionState" and "lastActivityTime", for example:
{
"deviceId": "test",
"etag": "AAAAAAAAAAM=",
…

J. Doe
- 1
0
votes
1 answer
Azure management API nodejs sdk for managing web apps
I am trying to provision a web app through Azure nodejs SDK
Are there any examples or repos that help in doing this?
Create a new web app.
set up the deployment source to bitbucket
sync with deployment source.
setup the environment…

ubreddy
- 815
- 2
- 8
- 19
0
votes
1 answer
Sending tasks to Azure Batch Jobs with Node SDK
I'm trying to send a large number of tasks to Azure Batch. There are three jobs and a total of 67,000 tasks spread across those jobs.
When I send only a few tasks everything works perfectly, as soon as I open it up to send the full list it seems to…

Mark
- 816
- 1
- 9
- 27
0
votes
1 answer
What is the best way to upload a large number of files to azure file storage?
I want the file storage specifically not the blob storage (I think). This is code for my azure function and I just have a bunch of stuff in my node_modules folder.
What I would like to do is upload a zip of the entire app and then just upload that…

justin.m.chase
- 13,061
- 8
- 52
- 100
0
votes
0 answers
How can I set up geo reads in an Azure Cosmos DB application
So it would seem that if I use a connection policy with preferred locations the read requests will use the locations in order specified in that preference...regardless of the geographic location of the request. If I do not use the preferred…

Shean McManus
- 158
- 1
- 10
-2
votes
2 answers
I want to upload files to Blob Storage NOT AS STREAMS (Buffer, base64) BUT AS original file (jpg , png jpeg)
I am unable to find a way to upload a file not as a stream (buffer, base64) but as a file(png,jgeg,jpg) to Azure Storage Blob.
MY Stream Code is
const blobServiceClient = new BlobServiceClient(
`https://${account}.blob.core.windows.net`,
…

Amaan Imtiyaz
- 254
- 6
- 16