Questions tagged [azure-sdk-js]

29 questions
2
votes
1 answer

Sending push notifications to Notification Hub via Node.js used new sdk

I've found this how-to guide on sending push notifications with in a Node.js application, however, it seems to be using the now unsupported azure-sdk-for-node sdk. The new recommended javascript (azure-sdk-for-js) sdk is found here, however, I'm…
cgat
  • 3,689
  • 4
  • 24
  • 38
1
vote
1 answer

DefaultAzureCredential, InteractiveBrowserCredential, etc... from JavaScript Azure SDK throws error during compile time due to child_process not found

I am developing a Microsoft 365 / Office 2013 - 2021 Taskpane Add-in using Visual Studio Code that is written in JavaScript. The meat and potatoes of the add-in work. It's the sides that are causing trouble. To elaborate, I find myself stuck…
1
vote
1 answer

Azure Identity SDK (JS) How to Authenticate to User's Azure Account

I am designing my first dev tool with the Azure SDK (JavaScript), and I am having a difficult time understanding how to authenticate users in production so the dev tool can access the user's Azure account. The tool is going to retrieve metrics from…
1
vote
0 answers

React Native MQ with Azure Service Bus

I'm looking for some advice on how to set up a MQ system using Azure Service Bus with React Native. I'm trying to set up a (food) ordering system, but I'm facing a few problems. For Azure Service Bus to work, the Azure Service Bus SDK is…
1
vote
1 answer

Azure SAS token for blob storage account not working

UPDATES: I have updated the function to provide wide timeframe to avoid expiration. I also am including screenshot of my account settings which I updated to enable public access. Also including current console results. Same result on the page that…
1
vote
1 answer

Calling a JS function without parentheses?

How the following code makes a call to odata function, is this a new language feature? what is the name of this new language feature and where can I find its reference?: const { odata, TableClient } = require("@azure/data-tables"); const…
mehran
  • 1,314
  • 4
  • 19
  • 33
1
vote
1 answer

Listing all resources in Azure in NodeJS

I am trying to use the Azure SDK for Javascript to list all the resources within an Azure subscription. My approach has been to authenticate using the @azure/ms-rest-nodeauth package and then call ResourceManagementClient from the…
MSOACC
  • 3,074
  • 2
  • 29
  • 50
1
vote
1 answer

How to upload a batch of images to Azure Custom Vision using JavaScript

I want to upload a batch of 64 images to Custom Vision using the JavaScript SDK. const files: ImageFileCreateEntry[] = [] while (i < 64) { const data = fs.readFileSync(`${sampleDataRoot}/${tag.name}/${file}`) const fileEntry:…
0
votes
1 answer

How generate passwords when creating a token for Container Registry auth

I'm trying to generate a new auth token with beginCreateAndWait, but passwords are not being generated with the token, I'm getting an empty array in token.credentials.passwords and when looking in the Portal, no passwords were generated for the…
Jimmy
  • 2,805
  • 6
  • 43
  • 57
0
votes
0 answers

How to query Azure log analytics using javascript SDK?

The bottom code is what I am using to query log analytics. All I am getting are results with the column names only, but no actual data. I have already logged in to my azure using the CLI. Have set up the right workspace ID as well. Do I have to…
Aijaz
  • 680
  • 15
  • 42
0
votes
0 answers

Automatic application insights dependency collection for @azure/arm- SDKs

I'm struggling to enable automatic log collection for @azure/arm SDKs. Currently, I'm using @azure/arm-keyvault, @azure/arm-network and @azure/arm-resources. Is there some extra configuration needed? I thought HTTP logs are collected…
0
votes
0 answers

Delay in Queue Message Processing for Servicebus Queue

I am using Azure Servicebus session based queue and the code we have used as listener is https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionRoundRobin.js. We are noticing a behavior…
0
votes
1 answer

Azure node sdk blob folder upload similar to cli upload-batch

In azure cli the command az storage blob upload-batch --source --destination-path --destination is it available the same api in the javascript sdk @azure/storage-blob or in another package? Thank…
Matteo Bombelli
  • 430
  • 5
  • 11
0
votes
1 answer

Create Azure AD Groups from Azure Functions

I need to create a NodeJS Azure Function that should create Azure AD Groups based on some logics. My question is which SDK to use for this scenario? I have been googling for the past few days and got lost in the Microsoft Documentation jungle. My…
0
votes
1 answer

How to create Azure Function App using JavaScript SDK

I'm having some trouble creating a Function App with the Azure JavaScript SDK. I'm able to create the app, but there are no configuration variables added, and the runtime isn't set either. I'm using @azure/arm-appservice and trying to follow the…
Albtzrly
  • 924
  • 1
  • 6
  • 15
1
2