> For the complete documentation index, see [llms.txt](https://docs.cloudassert.com/hybr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudassert.com/hybr/features/cloud-cost-management/cost-allocations-and-budgeting.md).

# Cost Allocations & Budgeting

Apportion costs to tenants in a highly efficient and accurate manner. Allows to track and monitor the costs of specific resources and services that are consumed by tenants, making it easier to allocate costs based on actual usage.

The cost allocation feature works by using a set of predefined rules that specify how costs should be apportioned to tenants. These rules can be customized based on specific business requirements, allowing users to tailor the cost allocation process to their specific needs.

#### Create Cost Allocation Rules

1. Log into the Hybr Admin portal and navigate to Reporting → Data Source → Rules page → Cost Allocation page.\ <br>

   <figure><img src="/files/9P8sy4KkconT6MYfVtI0" alt=""><figcaption></figcaption></figure>
2. Click the 'Create Cost Allocation' button to create a new Cost Allocation Rule; Selected Source \
   &#x20;Cost Data with the 'Add Source' option<br>

   <figure><img src="/files/wiSJvyGt3AKqssw2jZDR" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/Hd9POac65kWsZoi9R3VF" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/qTAiXBUZoX9XTIAfGndu" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/uC6m1Ac8ovEqETLRnRo6" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/j0BXjteM1zTlhCp3Ou10" alt="" width="563"><figcaption></figcaption></figure>

3. Once configured Source Cost details with Target Tenant Subscriptions, click next to configure the Rule Name, Order and Policy as follows.<br>

   <figure><img src="/files/UhwjfzHx8RhUduOT6gvb" alt=""><figcaption></figcaption></figure>
4. The configured rules will be applied to the Cost Allocation going forward. In order to apply modified rules to the past month, the Cost Allocation needs to be reset as described below.

   <figure><img src="/files/txJElwMYg9CO31UJXhDr" alt=""><figcaption></figcaption></figure>

### Tag Based Cost Allocation

As the name says, Cost allocation can be applied as per the tag value from cost export records. Hybr supports 100% allocation to the Hybr subscription, if it is added as a tag value for any resources. This is applicable only if there is either no rules added or doesn't match under any configured rules. It is supported for the following Cloud platforms.

#### Azure

For Tag based cost allocation, tag values have to be added for the resources as follows.

1. Log in to Azure Portal (<https://portal.azure.com/>) and navigate to Overview page for any resources as needed.

<figure><img src="/files/ZbPvjxfkUFXtEqfROB7J" alt=""><figcaption><p>Resource Overview</p></figcaption></figure>

2. Add a new Tag with Name as **"HybrTenantSubscriptionId"** and the value should be the onboarded Hybr subscription for which the 100 percent of the cost consumed by this particular resource has to be allocated.

<figure><img src="/files/QJA7yxHJkPf6GGlx1a0s" alt=""><figcaption><p>Edit Tags</p></figcaption></figure>

3. Save the changes.

#### GCP

1. Log into GCP console portal(<https://console.cloud.google.com/>) and navigate to IAM & Admin -> Tags.

<figure><img src="/files/pUcmk6F3jQkGe29UdIZI" alt=""><figcaption><p>Tags</p></figcaption></figure>

2. Once navigated to Tags page, create a tag and save the changes.

<figure><img src="/files/m8LiZfGpbPMcM3s7WIn3" alt=""><figcaption><p>Tag Page</p></figcaption></figure>

<figure><img src="/files/OAQWg1SB7xzMoBMFbdt1" alt=""><figcaption><p>Create Tag</p></figcaption></figure>

3. Once the tag is created, select the newly created Tag name to get the tag value id for the value added.

<figure><img src="/files/j8ZccaVNKxGFhfd48jIO" alt=""><figcaption><p>Tags tab</p></figcaption></figure>

<figure><img src="/files/7JmFdn18tzY6TqWVFHnm" alt=""><figcaption><p>Tag Value Tab</p></figcaption></figure>

4. Copy the Tag value id to add it to any resources as needed.

<figure><img src="/files/5qfcWpDP8AurzQI7i6qM" alt=""><figcaption><p>Resource Details</p></figcaption></figure>

<figure><img src="/files/GiLwamTUQgTsMIOdsr7w" alt=""><figcaption><p>Add Tag</p></figcaption></figure>

<figure><img src="/files/IizixauirhuJr0ukCmLN" alt=""><figcaption><p>Tag added for a resource</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cloudassert.com/hybr/features/cloud-cost-management/cost-allocations-and-budgeting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
