bconsole Query Commands
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
The Bacula Enterprise Azure-vm Plugin supports also the query parameter.
The plugin answers the query in the form of tuple key=value.
The plugin supports two operators if none of them is passed the plugin will answer with Query not recognized, possible value={CONNECTION, VM}
CONNECTION
This query checks if the system is logged to a Microsoft Azure account
When the query parameter is CONNECTION, the returned value will be either OK or NOK, indicating whether the
connection was successful or not.
.query plugin="azure-vm:" client=client-fd parameter=CONNECTION
info=Query
CONNECTION=OK
VM
This query sends a request to Azure that lists all available guest VMs. This query displays one key=value per virtual machine where key is
VM and value is the name of the virtual machine.
The example below shows the execution of a correctly formatted VM
query that finds three different guest VMs.
.query plugin="azure-vm:" client=client-fd parameter=VM
info=Query
VM=Virtual1
VM=Virtual2
VM=Virtual3
GROUP
This query looks for a configuration file located at /opt/bacula/etc/azure-vm.conf and prints all available parameter groups in a GROUP=groupName
.query plugin="azure-vm:" client=client-fd parameter=GROUP
info=Query
GROUP=main
GROUP=second
VERSION
Print information relative to azure and azcopy CLI
.query plugin="azure-vm:" client=client-fd parameter=VERSION
info=Query
azure-cli=2.40.0
azure-cli-core=2.40.0
azure-cli-telemetry=1.0.8
azcopy=10.16.0
Go back to: Azure VM Plugin: Operations.