# Enabling Azure Billing Data

To enable the billing feature in DuploCloud for Microsoft Azure, you must assign the **Billing Reader** role to the DuploCloud master VM (`DuploMaster`), restart the VM to apply the change, verify that the billing service is running, and then enable billing in the DuploCloud Portal.

## Step 1. Assign the Billing Reader Role

Follow the Azure documentation to [assign a role using the Azure portal](https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal).

When assigning the role:

* **Scope**: Assign the role to the VM named **`DuploMaster`**.
* **Role**: Select **Billing Reader**.
* **Identity**: Choose the system-assigned or user-assigned managed identity associated with the VM.

{% hint style="info" %}
To locate the DuploMaster VM, go to Azure Virtual Machines and search for a name beginning with `DuploMaster`.
{% endhint %}

## Step 2. Restart the VM

After assigning the role, restart the `DuploMaster` VM so the role assignment takes effect.

Refer to [Restart a virtual machine in Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/restart) for detailed instructions.

## Step 3. Enable Billing in DuploCloud

To complete the setup:

1. From 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></figcaption></figure>

Billing data will be displayed as it becomes available from Azure.


---

# 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-2/use-cases/billing-and-cost-management/enable-billing-data.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.
