Forum Discussion

erico_vincentci's avatar
erico_vincentci
New Member
1 year ago
Solved

publish and create workspace security using power bi and azure

i wanna publish my report on power bi service,   i create some report and publish into custom workspace named : 'testing-id'   but i got issue  on step              i use libra...
  • v-pnaroju-msft's avatar
    1 year ago

    Thankyou, Deku, for your response.

    Hi erico_vincentci,

    We appreciate your inquiry submitted through the Microsoft Fabric Community Forum.

    Based on my understanding of your setup and the 'Unauthorized' error you are encountering, the issue appears to be related to Service Principal authorization within Power BI.

    Kindly follow the steps outlined below, which may help resolve the issue:

    1. Navigate to the Power BI Admin Portal and enable the options "Allow service principals to use Power BI APIs" and "Allow service principals to create and view content." You may assign access to a security group or temporarily allow access for the entire organisation.

    2. Proceed to the Azure Portal, go to App Registrations, and select your application. Add and grant admin consent for the required application permissions, such as Dataset.ReadWrite.All, Report.ReadWrite.All, and Workspace.ReadWrite.All.

    3. In the Power BI Service, open your workspace (testing-id). Go to Access and add your Azure AD App as a Contributor or Admin.

    4. Ensure that your application is registered in the same tenant where Power BI is hosted. Also, verify that you are not using a personal or guest account.

    5. Confirm that your application is registered in Azure AD with a valid Client ID, Tenant ID, and Client Secret. Ensure your app uses the correct Client ID, Client Secret, and Tenant ID to authenticate with the Power BI API. 

    For your reference, please find the following link:
    Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn

    If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar issues.

    Should you have any further queries, please feel free to contact the Microsoft Fabric community.

    Thank you.