Table of Contents |
---|
...
Remove the cron jobs to run the billing scripts.
Code Block # rm /etc/cron.d/abiquo-billing-ec2 # rm /etc/cron.d/abiquo-billing-arm
Remove last bills
Delete the last bills from the previous version of the billing dashboards (from the billing_consolidation and billing_register tables).
...
As part of the upgrade process :
...
To configure the cron job to regularly obtain billing data. The default is every 2 hours
Code Block |
---|
abiquo.billing.task.cron = 0 0 0/2 ? * * * |
To configure the number of months to obtain billing data for. The default is to get data for 2 months.
Code Block |
---|
abiquo.enterprise.property.billing.monthoffset=4 |
On the Remote Services server, edit the abiquo.properties file and optionally set the default country code with this property.
Code Block |
---|
abiquo.billing.azure.country_code=US |
...
do these steps.
Include Page | ||||
---|---|---|---|---|
|
Check and change enterprise properties
The upgrade will automatically rename this enterprise property and you must change it for resellers
Provider Property name Note Description AWS amazon_bucket
Replaces billing_bucket
Changed value for resellersName of the S3 bucket where Amazon stores billing data.
After the upgrade, for resellers, add the AWS billing bucket name.
Note that you can copy this from the old configuration files.The upgrade will rename the following enterprise properties as described in the Note column.
And you MUST now add them for all Azure subscriptions (they previously may have only been for standard or reseller accounts)Provider Property name Note Description Azure azurecompute-arm_currency_code Replaces Currency - Required for all Azure accounts
- Three character currency code of the bill. Default is USD
- WARNING! Different from currency_code used for conversion factor
Azure billing.azure.country_code Replaces RegionInfo - Two character country code of the bill.
- Use to override the default set with abiquo.properties
- Add to reseller accounts
Azure azurecompute-arm_discount
No change
- Required for all Azure accounts
- Provider discount value
- Add to standard accounts
- Can be set to 0 for standard accounts
The upgrade will automatically rename the following enterprise properties and you shouldn't need to make any changes to them.
Provider Property name Note Description AWS amazon_report_name Replaces report_name
Part of the path: amazon_bucket/amazon_bucket_prefix/amazon_report_name/file.csv
AWS amazon_bucket_prefix Replaces report_prefix Part of the path: amazon_bucket/amazon_bucket_prefix/amazon_report_name/file.csv
Add the following NEW enterprise properties as part of the upgrade process.
Provider Property name Description AWS amazon_billing_compress_format
For all Amazon accounts.
Compression format for the billing reports.
Values can be "ZIP" or "GZIP"Azure azurecompute-arm_only_bill_subscription Only for enterprises with Azure plans under CSP subscriptions; NOT for resellers.
Use it for enterprises that belong to a tenant with multiple subscriptions, to compute the cost of the usage of the subscription only.
If the enterprise doesn’t have the property, it will compute usage + product costGoogle dataset_id
For all account types. The ID of the big query dataset where Google will store the billing data Remove the following enterprise properties that are deprecated as part of the upgrade
Provider Property name Description Azure OfferDurableID Previously for CSP accounts, this was the ID of the customer in the configuration file - To enable the platform to access the billing data in the provider.
- For each provider obtain pricing credentials. See Obtain public cloud credentials
- Edit the Enterprise and go to Credentials → Pricing
- Add Pricing credentials.
- Note: When you add Pricing credentials to an enterprise with a pricing model, this will also activate price list synchronization to onboard hardware profile prices from Amazon and Azure.
See See Import hardware profile prices.
- Remove the old billing dashboard modules and their configuration files. See /wiki/spaces/doc/pages/311371999
...