azure-xplat-cli | For ARM-based service please go to CLI | Azure library
kandi X-RAY | azure-xplat-cli Summary
kandi X-RAY | azure-xplat-cli Summary
The CLI targets "Public Azure Cloud" by default. You can get more information about the endpoints supported in different environments from here.
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-xplat-cli
azure-xplat-cli Key Features
azure-xplat-cli Examples and Code Snippets
Community Discussions
Trending Discussions on azure-xplat-cli
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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-xplat-cli
Uninstall the previously installed CLI If you installed via MSI, then uninstall the windows MSI. For mac installer sudo azure-uninstall -g If you installed via npm then execute: npm uninstall -g azure-cli
Clear the global cache: If npm4.0 or before: npm cache clear -g If npm5.0 or greater npm cache verify
Delete the .streamline folder from the User’s home profile C:\Users\<username>\.streamline | ~/.streamline, if present.
Download the tarball from this link: https://github.com/Azure/azure-xplat-cli/archive/<branch-name>.tar.gz
Install from the tarball: npm install –g <path to the downloaded tarball>
You can install the azure-cli npm package directly.
In a Docker host, run:. You can clone the repo and use the "Dockerfile" from master branch. It should install the last released version of azure-cli.
If you use both mechanisms on the same subscription, Azure Active Directory authentication will be used by default. If you want to go back to management certificate authentication, please use azure logout, which will remove the Azure Active Directory information and bring management certificate authentication back in.
First, get authenticated with Microsoft Azure. For details, read this article. Option 1: Login with your Microsoft account, such as live-id, or organizational account, or service principals. Option 2: Download and import a publish settings file which contains a management certificate.
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