Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
PBIJoe
New Member

Oracle PBCS REST API through Python 401 Authorization Issue

Currently working to bring in data into a lakehouse by using a notebook with python code with REST APIs. I have done all of the tests in postman and powershell which have been successful, however when executing the notebook from the power bi service I am receiving the 401 Authorization Required message. Our oracle PBCS instance does have a network whitelist and I am wondering if it has to do with the ip for the power bi service not being part of that list. Any thoughts as to where the ip for the power bi service could be found? Also open to any other suggestions or places to look.

 

PBIJoe_0-1738348069002.png

 

1 ACCEPTED SOLUTION
nilendraFabric
Community Champion
Community Champion

Hello @PBIJoe 

You are on the right track 

 

.Power BI Service operates on Azure infrastructure, and its IP ranges are dynamic and region-specific. If your Oracle PBCS instance has a network whitelist, you need to ensure that the IP ranges used by Power BI Service in your region are allowed.

 


• Azure Datacenter IP Ranges:

 

Microsoft provides a downloadable JSON file containing Azure’s IP ranges. This file is updated weekly to reflect changes. You can download it from Microsoft’s official site (search for “Azure IP Ranges and Service Tags – Public Cloud”) and filter the ranges relevant to your region and services like Power BI.


• Dynamic Nature of IPs: Since these IPs change frequently, you might need to automate updates to your whitelist or use a service tag like `PowerBI`.

https://stackoverflow.com/questions/69179104/trying-to-connect-power-bi-service-to-snowflake-what-ip...

 

https://community.fabric.microsoft.com/t5/Service/Whitelisting-of-PowerBI-IP-address-range-in-Firewa...

 

 

https://www.microsoft.com/en-us/download/details.aspx?id=56519

 

Hope this helps

 

Please accept the answer if this is helpful.

 

Thanks

 

 

 

 

View solution in original post

1 REPLY 1
nilendraFabric
Community Champion
Community Champion

Hello @PBIJoe 

You are on the right track 

 

.Power BI Service operates on Azure infrastructure, and its IP ranges are dynamic and region-specific. If your Oracle PBCS instance has a network whitelist, you need to ensure that the IP ranges used by Power BI Service in your region are allowed.

 


• Azure Datacenter IP Ranges:

 

Microsoft provides a downloadable JSON file containing Azure’s IP ranges. This file is updated weekly to reflect changes. You can download it from Microsoft’s official site (search for “Azure IP Ranges and Service Tags – Public Cloud”) and filter the ranges relevant to your region and services like Power BI.


• Dynamic Nature of IPs: Since these IPs change frequently, you might need to automate updates to your whitelist or use a service tag like `PowerBI`.

https://stackoverflow.com/questions/69179104/trying-to-connect-power-bi-service-to-snowflake-what-ip...

 

https://community.fabric.microsoft.com/t5/Service/Whitelisting-of-PowerBI-IP-address-range-in-Firewa...

 

 

https://www.microsoft.com/en-us/download/details.aspx?id=56519

 

Hope this helps

 

Please accept the answer if this is helpful.

 

Thanks

 

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.