Table of Contents |
---|
Info |
---|
This page describes how to create price factors to set markups and discounts for cloud providers and private cloud. |
...
Tip |
---|
To exclude an item from billing, add a price factor with a value of |
Panel | ||
---|---|---|
| ||
Privileges: View price factors, Manage price factors |
...
Excerpt | ||
---|---|---|
| ||
To create a price factor:
When you create a price factor, the platform will assign your user scope to it, and only users with the same scope will be able to view and manage the price factor. |
...
For Azure, you can apply more specific price factors to apply to different resources at bill type and product level.
Azure price factor type | Applies to |
---|---|
azurecompute-arm_price_factor | All resources |
azurecompute-arm_price_factor.bill_type | Resources of the specific category |
azurecompute-arm_price_factor.bill_type.productId | Resources of the specific category and product ID |
...
Azure bill types table
The multiple bill types for price factors let you separate the customer bill into Azure plan usages, reservations, licenses, and third-party products, and set different price factors for each one.
Azure bill type | Description |
---|---|
License based services | Products from the view “OnliceServices” with product type “OnlineServicesNCE”. Only the new commerce ones from the CSP license based services pricing sheet. (https://docs.microsoft.com/en-us/partner-center/develop/get-a-list-of-products#rest-request ) |
Marketplace | All the products for which the publisher is different from Microsoft or Microsoft Corporation |
Azure plan | Entries retrieved by usage line items |
Reserved instances | Products from target view “AzureReservations” |
Software | Products from target view “Software” |
Managed | Managed will be an extra line that consists of X percent of total Azure plan cost (used to define the factor to be applied to Azure plan costs to calculate the managed cost). |
...
AWS bill types table
AWS has the following bill types as explained in their documentation for bill/BillType.
Reference: https://docs.aws.amazon.com/cur/latest/userguide/billing-columns.html#billing-details-B
Bill type | Description |
---|---|
Anniversary | Line items for services that you used during the month |
Purchase | Line items for upfront service fees |
Refund | Line items for refunds |
Managed | Managed costs as a percentage of AWS costs, which the platform calculates if there is a |
AWS product names
AWS has many product names. Here are some examples given in their documentation for product/ProductName
...
AWS billing files contain charges and refunds. Abiquo lets you ignore billing items, which is helpful for excluding refunds from billing data. You can also ignore billing entries by specifying a price factor of 0
.
To ignore billing entries with specific billtype bill type and product name:
Log in to the Abiquo server as administrator
Go to the
/opt/abiquo/config/
folderCreate a file with an appropriate name, such as
aws-refund-product-ignore.csv
Enter a list of bill types and product names separated by a colon, for example:
Refund:AWS Premium Support
Refund:EC2 Reserved Instances
Edit the
abiquo.properties
fileSet the abiquo property with the file location, for example:
Code Block abiquo.ec2billing.parser.billType.productName.ignore.path=/opt/abiquo/config/aws-refund-product-ignore.csv
...
Include managed costs for AWS
To include managed costs as a percentage of a customer bill, define a price factor for the Managed
bill type in the reseller, key node, or customer standard enterprise.
In AWS, the managed cost will be a percentage of the standard enterprise bill, as defined by the price factor of type Managed
. The platform will apply the provider price factor and calculate the managed cost with the managed price factor.
For example, if Amazon price factor = 1.2
and Managed price factor = 0.3
and we run billing for an account that has a total cost of $125.70
, then the managed cost will be $45
, which the platform calculates as follows:
Code Block |
---|
$125.70 * 1.2 * 0.3 = $45.00 |
...
Include managed costs for Azure
In Azure, the managed cost will be a percentage of the Azure plans cost, as defined by the price factor of type Managed
. The platform will apply the provider price factor and calculate the managed cost with the managed price factor.
For example, if Azure price factor = 1.1
and Managed price factor = 0.4
and we run billing for an account that has a total Azure plans cost of $110.30
for usage line items, then the managed cost will be $48.53
, which the platform calculates as follows:
Code Block |
---|
$110.30 * 1.1 * 0.4 = $48.53 |