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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Super User
Super User

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
Super User
Super User

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors