Plugin Configuration
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
The plugin is configured using Plugin Parameters defined in the “Include” section of a Fileset resource (Bacula Director configuration).
For this plugin it is possible to pass arguments from a configuration file. Configuration file follows the .ini format. Each combination of parameters has to be identified by a bracketed group name then each parameters are set via a key = value format.
The azure Plugin will look for a configuration file located at /opt/bacula/etc/azure-vm.conf. If such file is present the plugin will then look for the relevant group to get parameters from. If the group parameter is not set then the first available group will be chosen.
Parameters provided by the Fileset have precedence over the parameters provided by the configuration file.
Configuration File Example
Here is an example of a configuration file at /opt/bacula/etc/azure-vm.conf for two different azure configurations.
[main]
tenant_id = 11111111-aaaa-bbbb-cccc-000000000000
subscription_id = 12345678-abcd-efgh-ijkl-01234567890ab
connection_key = DefaultEndpointsProtocol=[...]
application_id = 12345678-2222-3333-4444-555555555555
application_secret = qqqq~---------------------qwertzuiopasd
[second]
tenant_id = aaaaaaaa-1111-2222-3333-zzzzzzzzzzzz
subscription_id = abcdefgh-1234-5678-9012-abcdefghijkl
connection_key = DefaultEndpointsProtocol=[...]
application_id = 87654321-1111-2222-3333-44444444444
application_secret = 9qqqq~---------------------qw123456789d
For the following fileset example since no group parameter is provided the plugin will look for the fist available group. In this case it will be main.
Fileset {
Name = "FS_AZURE_VM"
Include {
Options {
signature = MD5
compression = LZO
}
Plugin = "azure-vm: vm=vm"
}
}
For the following fileset example the parameter group second will be selected.
Fileset {
Name = "FS_AZURE_VM"
Include {
Options {
signature = MD5
compression = LZO
}
Plugin = "azure-vm: vm=vm group=second"
}
}
Read more:
Go back to: Azure VM Plugin: Configuration.