Forum Discussion
Add context url to powerbi endpoint
Hello everyone,
I asked a similar question a couple months ago but after testing out some options we are still on an empasse.
Basically what we are trying to achieve is add a context url to each Report Server - Power BI virtual directory. Those are:
/Reports
/ReportServer
/powerbi
Through the use of an apache server, we managed to add the context we need in front of /Reports and /Reportserver, re-writing urls to /omr/Reports and /omr/ReportServer.
We still have problems with the third virtual directory, which is /powerbi. What happens when you navigate to any dashboard inside a Report Server is that internally, the Web Page of the Report Server calls /powerbi endpoints to retrieve the corresponding data. The problem is that we need that endpoint to be rewritten to /omr/powerbi, but we cant do that server side. We need to have a way to change it in the fetch operation, when the request is sent.
Is there any possibility to do this?
Hi jcaroe ,
You are not doing anything wrong here. Its just that Power BI Report Server does not officially support hosting behind a sub-path like /omr . It is designed to run at the root of a domain.
Best practice is to host it at the root of a dedicated subdomain.
If you still need help, you can open a Support ticket.To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Hope this helps!
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You
5 Replies
- v-sdhruvCommunity Support
Hi jcaroe ,
Power BI Report Server does not support adding a custom context path to the default URLs (/Reports,/Report Server) and this includes the /Powerbi virtual directory.Altering the built-in virtual directories themselves is not supported through any PBIRS configuration options.
To have everything under a prefix like /omr, you’ll need to handle that in your proxy layer, not PBIRS.
However, you can try to add a reverse proxy route for /powerbi.
This documentation provides step by side guide to configure reverse Proxy
https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-rule-template
Hope this helps!
If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.- jcaroeRegular Visitor
Unfortunately, even with reverse proxying, the problem for us still remains, because the FE of Power BI Report Server still sends requests to https://hostname/powerbi -> the "hostname" is a proxy server which only understand /omr paths, and powerbi is rejected.
Thank you for your time.
- v-sdhruvCommunity Support
Hi jcaroe ,
You are not doing anything wrong here. Its just that Power BI Report Server does not officially support hosting behind a sub-path like /omr . It is designed to run at the root of a domain.
Best practice is to host it at the root of a dedicated subdomain.
If you still need help, you can open a Support ticket.To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Hope this helps!
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You - gert_ederNew Member
We have the same problem in addition we do not have the possibility to place something like a reverse proxy before. I believe it is a common problem and I hope Microsoft will provide supported solution.