Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page describes how to configure To display Azure billing data for resellers with CSP accounts. 

The platform populates the billing dashboard with data from the cloud provider, so you will need to allow programmatic access to billing in the cloud provider.

  • After you configure this feature, the platform may take up to 2 days to display data in the Estimated bill section of the Hybrid dashboard. 

You should add credentials from each CSP account to the corresponding Abiquo enterprise within a reseller and tenant hierarchy. For more details, see Add public cloud or Abiquo cloud reseller guide

...

To display billing data for reseller tenants and their customers, do the following steps.

Configure Azure account

CSP resellers must give consent for the use of the CSP account in the platform. Contact Customer Service for more information.
The consent process will generate the accessToken and the refreshToken, which are part of the pricing credentials.

Configure Abiquo configuration properties

On the Abiquo Server, edit the abiquo.properties file and configure the following properties as required.

By default, the platform will retrieve billing data for the last two months. To change this value, and add the following property with the number of months to retrieve:

Code Block
abiquo.enterprise.property.billing.monthoffset=2

By default, Abiquo will bill SaaS resources, such as a Twilio subscription, to the enterprise that the subscription is assigned to. This corresponds to the billing scope ID of a billing line item.

To exclude products from specific publishers from Azure billing, add the following property, and enter a string of publishers to exclude from billing line items in CSV format

Code Block
abiquo.azure.billing.parser.lineitem.publisher.ignore=Microsoft Office

To use excluded publishers with the public-cloud-billing-check-tool for Azure, use the "--excludedPublishers" option.

In Abiquo configure price factors

To add a markup for your reseller and customers of your reseller, use an Abiquo price factor.

Go to Pricing view → Price factors and add a price factor for the Azure provider.

You can also create markups by product type and product ID.

See Manage price factors

In Abiquo configure enterprise properties for the reseller

In Abiquo, edit the reseller enterprise and create the enterprise properties:

...

Property

...

Description

...

azurecompute-arm_discount

...

and their customers:

  1. Abiquo can obtain Azure billing data with the credentials you enter when you configure Abiquo to:

    1. Create a reseller with CSP pricing credentials; OR

    2. Create an enterprise with compute or billing only credentials, with a Contributor role.
      See Onboard an Azure CSP or AWS organization account.

  2. Edit the CSP reseller enterprise and set the following enterprise properties:

    1. azurecompute-arm_discount: decimal value (with dot separator), used to calculate the user invoice for billing dashboard.

...

    1. CSP APIs return prices with a discount applied, which we remove to display for customers.

...

    1. We use the formula: total =

...

    1. TotalFromCSP/(1 -  azurecompute-arm_discount)

...

azurecompute-arm_price_factor

...

    1. .

...

    1. This

...

    1. is a required property

    2. azurecompute-arm_currency_code

...

    1. : The default is

...

    1. USD

...

    1. . Three character currency code of the bill.

...

    1. Warning -

...

    1. this is different from currency_code used for conversion factor. This is a required property

    2. billing.azure.country_code

...

    1. : Two digit ISO code representing the country where you purchased the subscription.

...

    1. The default of

...

    1. US

...

    1. is set in abiquo.properties

...

Configure enterprise properties for reseller customers

For reseller customers, edit the enterprise and create the following properties:

...

Property

...

Description

    1. on Remote Services as abiquo.billing.azure.country_code.

...

  1. Optionally, configure price factors for markups. See Manage price factors

  2. Edit reseller customer enterprises and add this enterprise property:

    1. azurecompute-arm_discount

...

Configure enterprise properties for reseller customers with Azure plans

For reseller customers with Azure plans under “CSP” subscriptions, create the following properties:

...

Property

...

Description

    1. : Decimal value (with dot separator), used to calculate the user invoice for billing dashboard.

...

azurecompute-arm_price_factor

...

The value of the discount or markup applied by the partner to the end user.
The default value is 1.

...

(minus) This property is deprecated in Abiquo 6.1. The upgrade process will migrate the enterprise property to an Abiquo price factor

  1. If the customer enterprise has Azure plans, they may have a keynode enterprise and several standard enterprises below it to use the plans credentials. Edit the standard enterprises and add this property.

    1. azurecompute-arm_only_bill_subscription

...

    1. :If this property is

...

    1. true

...

    1. , for an Azure plan, only bill for usage -

...

    1. do not include the customer's products and services in the billing data for this enterprise.

Configure price factors for reseller customers

...

...

Abiquo properties for Azure billing data display

On the Abiquo Server, you can configure price factors the following properties for the Azure provider, for product types, and for product IDs. Insert excerptdoc:Manage price factorsdoc:Manage price factorsnameCreate a price factornopaneltrue

For Azure price factor tables see Manage price factors

Configure credentials and privileges in Abiquo

...

For any reseller customer that will not use the compute features of the provider, to display data on the Billing dashboard, enter compute Credentials on the Public tab in the format Subscription##TenantId. 
See Add credentials of reseller customers for billing only.

...

In Abiquo, edit the reseller enterprise and go to Credentials → Pricing and add the Pricing credentials,

...

Azure billing.

  • abiquo.enterprise.property.billing.monthoffset: By default, the platform will retrieve billing data for the last two months. To change this set the following property to the number of months to retrieve.
    Default value:2

  • abiquo.azure.billing.parser.lineitem.publisher.ignore: By default, Abiquo will bill SaaS resources, such as a Twilio subscription, to the enterprise that the subscription is assigned to. This corresponds to the billing scope ID of a billing line item. To exclude products from specific publishers from Azure billing, add the following property, and enter a string of publishers to exclude from billing line items in CSV format. With the public-cloud-billing-check-tool for Azure, use the --excludedPublishers option. Default value:Microsoft Office

On the Remote Services, you can configure the following properties for Azure billing.

  • abiquo.billing.azure.country_code: For Azure price factors. Two digit ISO code representing the country where you will obtain the product list. Default value:US

...