azure-sdk-for-node | Azure SDK for Node.js - Documentation | Azure library
kandi X-RAY | azure-sdk-for-node Summary
kandi X-RAY | azure-sdk-for-node Summary
We are excited to announce that we are building a new Azure SDK for JavaScript in a new GitHub repo located here: These packages ship with TypeScript type definitions and have both Node.js and Browser support.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-sdk-for-node
azure-sdk-for-node Key Features
azure-sdk-for-node Examples and Code Snippets
Community Discussions
Trending Discussions on azure-sdk-for-node
QUESTION
I am trying to build a node application that will start (among other things) start a Azure VM.
I can currently log into Azure without issue but when I go to start the VM like seen in the below example page on github I get the error TypeError: Cannot read property 'virtualMachines' of undefined
and I am unsure of why considering I practically took the code from the example I found.
https://github.com/Azure/azure-sdk-for-node/blob/master/examples/ARM/compute/vm-sample.js
...ANSWER
Answered 2019-Jan-11 at 03:49Here is why you are seeing that error. Here is a very simplified version of what you are trying to do, and the order you are trying to do it in:
QUESTION
I have a node project and I am using these libraries:
...ANSWER
Answered 2018-Feb-07 at 01:47In your token, the resource is wrong.
You should use https://vault.azure.net
instead of https://management.core.windows.net/
.
This is mainly because I need to both login using ServicePrincipalSecret and MSI. As far as I can tell the adal library doesn't support MSI login.
Yes, msRestAzure.loginWithServicePrincipalSecret(clientID, clientKey, domainID)
does not support MSI login, but you could use msRestAzure.loginWithAppServiceMSI({resource: 'https://vault.azure.net'});
More information about this see this link.
QUESTION
I am currently following this script to make the direct API calls to graph and to ARM to programatically create an Active Directory Application, a Service Principal referencing that created App, and a role assignment to that created service principal.
It works well since I must only use JavaScript: https://github.com/Azure/azure-sdk-for-node/blob/master/Documentation/ServicePrincipal/spCreate.js
The problem is that trying to assign the role in the success callback of the service principal creation, at line 134, results in a 400 Error, stating that the service principal was not found. This issue occurs when trying to make the request immediately on the success callback, if I wait for about 20 seconds after the success callback of the service principal creation then the role assignment works.
So my question is, what would be the best way to deal with the role assignment without the need of setting a sleep/setTimeOut to wait for the changes to propagate in Azure? Is there some other webhook/event or something that signals that the service principal is available?
...ANSWER
Answered 2017-Jun-28 at 05:16There is no such webhook/event for this scenario. As a workaround, you may check the result of role assignment, if it was failed, you can send the request repeatedly.
In addition, if you have any idea or feedback about Azure Active Directory, you can submit them from here.
QUESTION
I've started to look into the azure sdk for node.js (link below) and interestingly enough I've hit a wall in what I'd image would be one of the most common tasks one would want to achieve using Azure's REST endpoints which is checking the status of a virtual machine.
I can easily get a list of all machine, or one in particular but the response from this services don't include the current status of the VM (running,stopped etc.)
There's absolutely no info out there regarding this particular scenario in the docos or the web other than a blog post (https://github.com/Azure/azure-xplat-cli/issues/2565) which is actually in regards of a different library.
Please not that I'm using the azure-arm-compute library which is part of the Node.js azure sdk.
Any help would be very much appreciated
github repo: https://github.com/Azure/azure-sdk-for-node
...ANSWER
Answered 2017-May-04 at 05:27To get Virtual Machine statuses, please use function get(resourceGroupName, vmName, optionsopt, optionalCallbackopt)
, and pass the vaule {expand: 'instanceView'}
as the options parameter.
QUESTION
Version Information
- Node.js: v4.6.0
- Azure: 2.0.0-preview
- MacOS Sierra (10.12.4 Beta)
Problem
I am getting the following error when I try to require('azure');
. Using 1.2.0-preview works as expected, but I need to use 2.0. Any pointers?
ANSWER
Answered 2017-Apr-19 at 06:35Found the answer. Posting it for the benefit of others.
https://github.com/Azure/azure-sdk-for-node/issues/2141
Basically, the Azure package needs you to use Node 6.10.2.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-sdk-for-node
Fork it
Git Clone your fork (git clone {your repo})
Move into SDK directory (cd azure-sdk-for-node)
Install all dependencies (npm install)
Run the tests (npm test). You should see all tests passing.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page