Questions tagged [azure-node-sdk]
89 questions
1
vote
2 answers
Cosmos DB Increment with Partial Document Update
https://learn.microsoft.com/en-us/azure/cosmos-db/partial-document-update#supported-operations
says that I can use "increment" to increment a value in my database, however this code
const operations =
[
{ op: 'increment',…

AuWiMo
- 120
- 8
1
vote
1 answer
Invalid Blob or Block content error, Node.js staging blocks
I have been banging my head against the wall on this one, it just doesn't make any sense for it not to work. So I am uploading a file to Azure Blobs using the stage and commit method. For some reason when uploading the last block, it fails.
Code for…

Owais Ahmad
- 112
- 1
- 6
1
vote
1 answer
Copy blob from one storage account to another using @azure/storage-blob
What would be the best way to copy a blob from one storage account to another storage account using @azure/storage-blob?
I would imagine using streams would be best instead of downloading and then uploading, but would like to know if the code below…

yohaansunnie
- 35
- 1
- 8
1
vote
1 answer
azure stageBlock onProgress event
I'm using the stageBlock method and the onProgress callback. I thought I had this working when I wrote this 9 months ago but I'm doubting myself now. The progress update is showing "loadedBytes" and it does not resemble what is actually going over…

Phil
- 1,609
- 12
- 24
1
vote
1 answer
How to Copy a blob in azure to another container with node sdk
I am trying to copy a blob in one container to another storage account in azure.
I am using @azure/storage-blob 12.0.0 but I cannot figure out how to copy a blob to another container without downloading it.
Maybe someone can help and post a quick…

Simon Krumböck
- 47
- 5
1
vote
1 answer
How do I access BlockBlobClient in Azure Storage JavaScript client library for browsers?
I'm attempting to use BlockBlobClient in a browser page to upload a file using a server-supplied sastoken / URL, similar to this C# code:
var blob = new CloudBlockBlob(new Uri(assetUploadUrl));
blob.UploadFromFile(FilePath,…

Todd Heckel-MSFT
- 83
- 1
- 7
1
vote
1 answer
Azure NodeJS Azure Devops deployment failing but Visual Studio deploy works perfect
We are trying to deploy a NodeJS app to Azure App Service (Linux) and if we deploy this from Visual Studio everything works fine and the site renders perfectly.
Now we create a basic build/Release pipeline and deploying the zip file (Created from…

user42012
- 722
- 12
- 33
1
vote
1 answer
Blob Storage Azure and javascript, how to list all snapshots for a specific blob
Beginning a nodejs project, I need to retrieve the latest snapshot (and its metadata) for a specific blob. I'm using the Azure Blob storage client library v12 for JavaScript.
I'm not sure but I only found a method linked to the ContainerClient…

Cedric G.
- 181
- 4
- 17
1
vote
1 answer
How to include and run NodeJS in Azure Functions v2 in Visual Studio 2017?
Below is my C# code in Visual Studio 2017:
[FunctionName("MyFunction")]
public static void Run([ServiceBusTrigger("myqueue", Connection = "ServiceBus")]string myQueueItem, ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function…

DaiKeung
- 1,077
- 1
- 19
- 38
1
vote
4 answers
How to access blob metadata using the Azure JavaScript SDK?
How do I read metadata for a blob in azure via the JavaScript SDK?
When I iterate the blobs returned from the specified container I see a metadata property:
But it's undefined, even though there is definitely metadata associated with the blob:
Is…

CatDadCode
- 58,507
- 61
- 212
- 318
1
vote
1 answer
Got error when trying to get access token in nodejs using azure, AADSTS50058: A silent sign-in request was sent but no user is signed in
I am trying to implement azure login in nodejs scheduler app, and then want to upload file to share point.
First i need to login, then get access token,refresh token, admin access token etc.
When i try to get access token , i got error like…

anfas
- 356
- 2
- 3
- 13
1
vote
0 answers
Pass AD user authentication to Azure REST API calls to provision resources
I'm creating a React App that requires authentication into Azure Ad. This is simple enough through the Adal libraries. When a user now requests my app, they are redirected to the login page first to authenticate.
The next step in my app, is for…

mickyjtwin
- 4,960
- 13
- 58
- 77
1
vote
1 answer
how do you properly pass a command to a container when using "azure-arm-containerinstance" from azure node sdk?
just looking for some guidance on how to properly invoke a command when a container starts, when creating it via azure-arm-containerinstance package. There is very little documentation on this specific part and I wasn't able to find any examples out…

andryuha
- 1,526
- 3
- 15
- 31
1
vote
2 answers
Azure node SDK to get more than 50 virtual machines
I' using the Azure node SDK to get all virtual machines for the subscription :
var computeClient = new computeManagementClient.ComputeManagementClient(credentials, subscriptionId);
var clientNetworkManagement = new…

Francisco Fernandes
- 193
- 1
- 6
1
vote
2 answers
Azure Function apps - cannot retrieve from Dead Letter Queue (DLQ)
I am following the nodejs examples here to retrieve messages sent to the dead letter queue. I was pushing dead letters to the Q in this manner:
await brokeredMessage.deadLetter({
deadletterReason: 'bad',
deadLetterErrorDescription: 'too…

yen
- 1,769
- 2
- 15
- 43