table of contents
        
      
      
    | azuremetadata.1() | azuremetadata.1() | 
NAME¶
azuremetadata - Query Microsoft Azure metadata server
SYNOPSIS¶
azuremetadata [option]
DESCRIPTION¶
azuremetadata is used to query Microsoft Azure metadata server. The available data is documented at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service . The tool allows to filter specific metadata fields via command line options, which are generated dynamically based on the data available for each API version.
STATIC OPTIONS¶
- -a --api [VERSION]
 - Specify metadata API version to be queried. By default the oldest available version is used (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, disk tag will be read from the root device.
 
DYNAMIC OPTIONS¶
Dynamic command line options are listed in --help output. An API version can be specified, the produced dynamic options list will be specific to that API version.
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)