Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Public cloud billing check tool

...

For both providers, add your connection details to the YAML configuration file

  1. Go to /opt/abiquo-public-cloud-billing-check-tool/config/ 

  2. Edit the config.yml file and complete the values for your system.

    Code Block
    Abiquo_database:
      host: localhost
      user:
      password:
      port: 3306
      database: kinton
      socket: /var/lib/mysql/mysql.sock
    abiquo:
      api_url: 'http://localhost/api'
      version: '6.0'
      user:
      #Basic Auth credentials
      password:
      #OAuth credentials
      access-token:
      access-token-secret:
      consumer-key:
      consumer-secret:

...

With the "accounts" option, the tool will check for accounts that are:

  1. Used in more than one enterprise in Abiquo

  2. Mapped to the reseller enterprise hierarchy but not present in the reseller organization

  3. Present in the reseller organization but not present mapped to Abiquo

If "verbose" is also selected, it will also print all the accounts of the organization.

...

You can use this tool if you have a set of Azure Plans subscriptions mapped to enterprises. The tool has two main functions:

  • Check that all subscriptions from a CSP Azure Plan are mapped correctly to Abiquo enterprises

  • For Azure billing, check the costs of the last month at customer level, not subscription level.

To run the tool for Azure with the help option to discover the parameters, run the following command:

Code Block
java -jar public-cloud-billing-check-tool.jar azure -h

Here is an example of the help parameters output. The "-r" parameter is mandatory.

...

Code Block
java -jar /opt/abiquo-public-cloud-billing-check-tool/public-cloud-billing-check-tool.jar azure --azureplan --billing --configPath /home/ansible/config.yml --margin 0 --verbose --discount '0.15' --reseller 3

Exclude publishers option

To exclude products from specific publishers from Azure billing, you can set a new system property "abiquo.azure.billing.parser.lineitem.publisher.ignore".
This property contains a string of publishers to exclude from billing line items in CSV format. For example "Microsoft Office". 
When you are using this property, for the public-cloud-billing-check-tool for Azure, you can use the "--excludedPublishers" option.

Azure example output

In verbose mode the tool will print a detailed list of all the CSP customers, and the respective enterprises that contain public cloud credentials of the same customer.

...

The number of missing subscriptions could be positive or negative:

  • A positive number means there are more entitlements in the CSP Azure Plan than there are in Abiquo

  • A negative number means there are more subscriptions in Abiquo than in the Microsoft Azure portal. This could be because credentials are not set correctly, or because a subscription was deleted/canceled/deactivated in Azure but the subscription still exists in Abiquo.

For the billing check option, there's no verbose option, so the output will be always the same, as in the example shown below. 

...