# Enabling GCP Billing Data

To enable billing data visibility in DuploCloud for Google Cloud Platform (GCP), you must export detailed billing data to BigQuery and give DuploCloud access to that dataset. Once the export is complete, you will enable the billing feature in the DuploCloud Portal to begin viewing usage and cost data.

## Step 1. Create a BigQuery Dataset

[Create a BigQuery dataset](https://cloud.google.com/bigquery/docs/datasets#create-dataset) in the project you plan to use with DuploCloud.

## Step 2. Enable Billing Export to BigQuery

[Enable detailed billing data export](https://cloud.google.com/billing/docs/how-to/export-data-bigquery) using the following specifications:

* Select the same project and dataset you used in Step 1.
* Make sure to enable **Detailed usage** **cost** export.

## Step 3. Share the Dataset with DuploCloud

1. Open the BigQuery dataset in the GCP console.
2. Click **Share dataset**.
3. Add the DuploCloud service account email.
4. Assign the role: **BigQuery Data Viewer**.

## Step 4. Enable Billing in DuploCloud

After setting up the export and access:

1. In the DuploCloud Portal, navigate to **Administrator**-> **Billing**.
2. On the right side of the page, click **Enable Billing Feature**.<br>

   <figure><img src="/files/BRWs7zNriJGyiihW71bG" alt=""><figcaption><p><strong>Billing</strong> page in the DuploCloud Portal with the <strong>Enable Billing Feature</strong> option highlighted</p></figcaption></figure>

DuploCloud will display GCP billing data as it becomes available from the BigQuery export.

## Step 5. Notify DuploCloud Support

Contact DuploCloud Support to confirm access and complete setup. This step is required to activate the billing dashboard.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-1/use-cases/cost-management/export-billing-to-bigquery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
