Manual Billing Reset through Commander API
In some situations it may become necessary to retrieve updated billing information from cloud accounts, to replace records downloaded with inappropriate settings.
For example, you might choose to follow this procedure to correct:
- charge type classifications
- errors in billing data
- billing tag usage
- import of SKU data for markup
- echange rate information
Additionally a billing reset is required when upgrading an earlier version to Commander 9.6.0 or later, as the means by which billing data is retrieved changes in Commander 9.6.0. This change was made because Microsoft announced end of support for their original billing API.
Follow the procedure below using credentials permitted to access the information.
Important! Following this procedure permanently replaces historic billing data. If you need to retain the historic data for comparison purposes or any other reason, please make sure to take a database backup prior to performing the steps below.
- Identify the ID of a cloud account by executing the following command, replacing <cloud_account_name> with the display name of the account as seen in Commander.
Execute GET <commander_url>/rest/v3/cloud-accounts/?filter=name -eq <cloud_account_name>
Record the ID. In the example shown below, the ID is 622631.
- Reset billing data for the cloud account by executing the following command, replacing <id> with the value retrieved in step 1 and providing the start_date (i.e. "2022-04-01") in the request body:
POST <commander_url>/rest/v3/cloud-accounts/<id>/billing-records/reset
- Once the reset task is successfully submitted, the task will be displayed in the Commander admin portal:
When the task completes, the billing data will be reset from the date selected.