AZUREMETADATA(1)

πŸ“¦ version 5.1.6, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

azuremetadata β€” query Microsoft Azure metadata server. And hiii bestie, you're on the azuremetadata.1 manual page, so let's get into it πŸ’–.

✨ SYNOPSIS ✨

azuremetadata [option]

🌸 DESCRIPTION 🌸

okay so azuremetadata is the tool you use to query the Microsoft Azure metadata server. The available data is documented at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service. This tool lets you filter specific metadata fields via command line options, and those options are generated dynamically based on the data available for each API version. slay ✨.

πŸ’… STATIC OPTIONS πŸ’…

These are the fixed ones, no cap:

  • -a --api [VERSION] β€” specify the metadata API version to be queried. If you don't set it, the oldest available version is used by default (2017-03-01).
  • -h, --help β€” print all available command line options to standard out.
  • -x, --xml β€” output the result as XML.
  • -j, --json β€” output the result as JSON.
  • -o , --output [OUTPUT] β€” output file path. If not set, the output is printed to STDOUT.
  • --device [DEVICE] β€” path to the device to read disk tag from. If not set, the disk tag will be read from the root device.

πŸ¦‹ DYNAMIC OPTIONS πŸ¦‹

Dynamic command line options are listed in the --help output. An API version can be specified, and the produced dynamic options list will be specific to that API version. iykyk 😌.

πŸ”₯ EXAMPLES πŸ”₯

  • Set the API version
azuremetadata --api 2019-08-15
  • Get instance name
azuremetadata --compute --name
  • Get public IP of a second network interface
azuremetadata --network --interface=1 --ipv4 --ipAddress --publicIpAddress

πŸ‘‘ AUTHOR πŸ‘‘

Ivan Kapelyukhin (ikapelyukhin@suse.com) β€” iconic behavior, fr fr πŸ’œ.


that's the whole azuremetadata.1 page, bestie β€” the footer just repeats the manual name and doesn't add a separate source/version or date, so this is the cute sign-off πŸ«ΆπŸŒˆπŸ’…

πŸ“¦ where this page comes from