#virtual-machine #azure #metadata #resources #command-line-tool #instancedata

app az-vminfo

A basic CLI utility to grab useful Virtual Machine metadata and instance data from the Azure Cloud using the Resouce Graph API

10 releases (5 stable)

1.2.0 Jan 23, 2024
1.0.3 Nov 9, 2022
0.1.4 Oct 17, 2022

#1228 in Network programming

MIT license

87KB
2K SLoC

azure-vminfo

A Rust utility that pulls useful virtual machine metadata and instance data from a configured Azure tenant using the Azure Resource Graph API(s)

Installation

Prerequisites

The instructions to install assume you have the rust toolkit installed. You can install them using rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

note: you will also need openssl-devel on RHEL or libssl-devel on Ubuntu/Fedora

Install with Cargo

cargo install az-vminfo

Install from Source

# clone the project
git clone https://github.com/SystemFiles/azure-vminfo.git && cd ./azure-vminfo

# install
cargo install --path .

Usage

A simple utility written in Rust to pull useful virtual machine info from a configured Azure tenant using the Azure Resource Graph APIs

Usage: vminfo [OPTIONS] [vm_name_or_regexp]...

Arguments:
  [vm_name_or_regexp]...  Specifies one or more VM name(s) or a regular expression to match VM(s)

Use --help to get a full list of options that can be used

Maintainer(s) / Contributor(s)

Dependencies

~8–26MB
~370K SLoC