# Capacity not turning on when a user accesses a report

### Introduction

The cost optimization feature makes it easy to efficiently manage the capacity of Microsoft Fabric or Power BI Embedded.

This feature aims to reduce costs and adjust the capacity size to handle demand peaks, providing more effective administration, especially in usage-based billing models.

{% hint style="info" %}
If you are using the Fabric trial period, you will not be able to start or pause the capacity, as it is an internal resource that you do not control.

This article only applies if you have already contracted your dedicated capacity in the Azure portal.
{% endhint %}

### How capacity optimization works

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

* When this optimization is enabled, only users with user or group level permissions will be able to view a report if the capacity is turned off. If the capacity is off and the user has permission to reactivate it, the system will show the pop-up below and the capacity will be turned on on demand and the report will load automatically.\\

  <figure><img src="/files/u85zSDcCZepvG2R623eq" alt=""><figcaption></figcaption></figure>
* If a user without permission to automatically turn on the capacity tries to access a report while the capacity is turned off, they will not be able to view the report.\\

  <figure><img src="/files/uN2drQS795sVrAYdzvcc" alt=""><figcaption></figcaption></figure>
* You can set the number of minutes during which your capacity can remain idle (i.e., with no open reports). When the system detects that no report has been accessed during that period, the capacity is automatically paused.
* During the period when the capacity is paused, you will not be charged. Although reactivating the capacity is fast and nearly imperceptible, some users may find the process inconvenient. To minimize this impact, you can schedule the reactivation of the capacity.

If the user is trying to access the report when the capacity is off and it is not being turned on automatically, you can follow the steps below to identify which configuration was not set up correctly.

### 1. Check if permissions were assigned in Azure

{% hint style="info" %}
Visit the [Azure Permissions](/en/administration-portal/artifacts/capacities/azure-permissions.md) page to see how to correctly assign permissions so that Power Embedded can control the capacity.
{% endhint %}

### 2. Check if the capacity was imported into Power Embedded

Access the [Capacities page](https://admin.powerembedded.com.br/Capacities) and verify that the contracted capacity appears in the list.

If it does not, click the **Reload** button to refresh the capacity list.

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

### 3. Check if the capacity is configured correctly

If you see the message "Not configured" next to the capacity, it means that the capacity needs to be configured to work in Power Embedded.

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

{% hint style="info" %}
Need help? Visit the [Configure the Capacity in Power Embedded](/en/administration-portal/artifacts/capacities/configure-capacity-in-power-embedded.md) page.
{% endhint %}

### 4. Check if the workspace is associated with the capacity in Power BI service

To associate a workspace with a contracted capacity, [access Power BI service](https://app.powerbi.com/).

Access the workspace whose capacity you want to change and click the **Workspace Settings** button.

<figure><img src="https://docs.powerembedded.com.br/~gitbook/image?url=https%3A%2F%2F2938845060-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ft2gQSHbraGsYbDGTmWAa%252Fuploads%252F7zIwdNTPrCDIwsccW3qJ%252Fimage.png%3Falt%3Dmedia%26token%3Decb19a94-af0f-4bdc-a8a5-513ba8e66c92&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=93b3d51f&#x26;sv=1" alt=""><figcaption></figcaption></figure>

On the screen that opened, click on the **License Information** option and then click the **Edit** button

<figure><img src="https://docs.powerembedded.com.br/~gitbook/image?url=https%3A%2F%2F2938845060-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ft2gQSHbraGsYbDGTmWAa%252Fuploads%252FOxbJxNg8FO0B5PIXdoQR%252Fimage.png%3Falt%3Dmedia%26token%3D626346e7-092d-491b-a80c-9da767b5baba&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1274ee31&#x26;sv=1" alt=""><figcaption></figcaption></figure>

In the capacity list, choose your contracted capacity and then click the **Apply** button.

<figure><img src="https://docs.powerembedded.com.br/~gitbook/image?url=https%3A%2F%2F2938845060-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ft2gQSHbraGsYbDGTmWAa%252Fuploads%252FjOjfaER1bIG0a2eQ0s82%252Fimage.png%3Falt%3Dmedia%26token%3D5d3ad3ab-5953-499c-a53e-2e40997f5400&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=30d59f2e&#x26;sv=1" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**WARNING:** Although not very common, these capacity changes during business hours can cause unavailability of reports in that workspace, as there may be cases where some models become locked, requiring a dataset refresh process to unlock them, which can take a considerable amount of time depending on the data model.

Also, be careful if you are changing the capacity to a SMALLER one than the previous one, or if you are migrating from a PRO or PPU capacity to a dedicated capacity (Fabric, Embedded, or Premium), as there may be a performance impact.
{% endhint %}

### 5. Check if the workspace is associated with the capacity in Power Embedded

After completing the previous process, it is important to access the [**Workspaces**](https://admin.powerembedded.com.br/Workspaces) page and click the **Reload** button to confirm that the workspace is now associated with the correct capacity.

For cost optimization to be applied correctly, the capacity name must appear in the Workspace capacity field, as shown in the image below.

<figure><img src="https://docs.powerembedded.com.br/~gitbook/image?url=https%3A%2F%2F2938845060-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ft2gQSHbraGsYbDGTmWAa%252Fuploads%252FNSlcczP2LM5K5K3D2IUv%252Fimage.png%3Falt%3Dmedia%26token%3D0473ae1a-40c5-4087-a41c-5700c1011c4a&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=70df7e8&#x26;sv=1" alt=""><figcaption></figcaption></figure>

### 6. Check if the capacity cost optimization is enabled

After completing all the previous steps, click the **Actions** > **Edit** button.

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

By clicking the actions button and selecting "Edit", you will be able to define the cost optimization settings in the portal.

You need to toggle on "Enable cost optimization (Pause and start automatically)", select the inactivity time to pause the resource, and save the changes.

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

### 7. Check if the user has permission to turn on the capacity (or is in a group with that permission)

It is important to verify that the user trying to access the report has permission to turn on a disabled capacity.

To do this, access the [Users page](https://admin.powerembedded.com.br/Users), click **Actions** > **Edit**, and look at the **Permissions** tab:

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

Check the groups this user belongs to and access the [Groups page](https://admin.powerembedded.com.br/Groups) to check whether any of the groups has permission to turn on the capacity and also has access to that report.

{% hint style="warning" %}
Permissions granted to a user apply to ALL reports that user has access to. If you need to limit these permissions to specific reports, grant this permission using Groups.
{% endhint %}

### 8. Check that the global permission to block turning on the capacity is NOT enabled

Access the "**Settings**" page, navigate to the "**Parameters**" tab and expand the "**Global Permissions**" section.

Check that the "**Cannot turn on report capacity**" permission is NOT enabled.

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

After completing the steps above, the capacity will be configured and should turn on automatically when it is off and a user with permission to turn on the capacity tries to access the report.


---

# 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.powerembedded.com.br/en/reports-portal/most-common-issues/capacity-not-turning-on-when-user-accesses-report.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.
