Retrieve billing information
Note: Billing information is currently being developed for Google Cloud Platform.
Please refer to the Platform you have selected
- GCP (Preview in only in JSON)
Cloudockit supports the following 3 billing types available in Azure:
Cloudockit automatically extracts billing information for you to see how much you spend for each component within the Documents & Diagrams.
To retrieve the accurate information, you need to select the detail Pane of the Billing Workload
Depending on the type you choose, you need to enter the appropriate information.
- Offer-ID: this is the type of offer you are using. Please refer click here for the list.
- EA Enrollment Number: you can find your enrollment number from the Azure EA portal (https://ea.azure.com/). You need to go into the Manage section and then select the enrollment tab.
- EA Billing API Key: you can find your enrollment number from the Azure EA portal (https://ea.azure.com/). You need to go into the Reports section and then select the Download Usage tab/API Access Keys.
- CSP Tenant: Enter your CSP Azure Active Directory Tenant (like mycsp.onmicrosoft.com)
- CSP Customer Id: This can be found from the Partner Portal, in your customer Account details in the Microsoft ID field. You can refer to this link for more details : https://docs.microsoft.com/en-us/azure/cloud-solution-provider/integration/manage-customers/get-customer-profile
- CSP App Id / Key: You need to enable API Access by following this article.
- Fields common to all billing types
- Region Code: Enter the 2 letters code of the region where the offer was bought (ex: GB, DE …)
- Start Date / End Date to specify the billing dates you want to use
- Currency code: Enter the currency code (ex: GBP, EUR …). For CSP you can leave blank to use default CSP currency.
- Use this tag to generate a billing report: Enter the tag used to organize your billing
- Apply a ratio when computing prices (%): Enter the ratio to use (ex:103 if you want to add 3% on all prices)
Please note you need to have the proper permission to do those actions.
To retrieve the accurate information, you need to select your AWS Account and then navigate to the Content Tab and scroll to the Billing Section.
You need to ensure the checkbox Include Billing details is checked and select the appropriate billing type:
Billing is based on Cost Explorer, so you first need to make sure Cost Explorer is activated.
Once you ensure that Cost Explorer is activated, you need to make sure that the user you are using to login has access to Cost Explorer. Typically, if you use the Read Only role, it does not have access to Cost Explorer. If you want to only add Cost Explorer permissions, you can create a policy as follows and add it to the Read Only user:
Cloudockit support billing information extraction only into a JSON ouptut format for now.
Cloudockit uses BigQuery Dataset to retrieve all the billing information.
To get the billing information into your documentation, you need to :
- Ensure the Service Account you are using has read permission to the BigQuery dataset where the billing Information is stored.
- Enter the following information in the Billing Details section in the Workload tab (those two information are found in the Google Cloud Console / Billing / Billing Export / Daily cost detail / Dataset name)
- Dataset that contains the billing data : Specify the name of the BigQuery Dataset that contains billing data.
- Table that contains the billing data : Specify the name of the BigQuery Table that contains the billing data.