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

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

Reply
AhmedGamalHamdy
New Member

Connecting Azure Fabric to Azure Flexible Postgres using Service Principal

Hi everyone,

I have an Azure Fabric capacity set up in my subscription, and I need to connect it to one of our Azure PostgreSQL Flexible Server instances in the dev environment.

  • The PostgreSQL instance has firewall rules in place.
  • I am using a Service Principal for authentication.
  • I have successfully logged in locally using a token generated by the Service Principal.
  • I have added the Service Principal as a Microsoft Entra Admin for the PostgreSQL instance.
  • However, I am facing issues when trying to connect through Fabric.

I have attached a screenshot of the error message I am getting.

Could anyone advise on the best approach to authenticate and connect Fabric to Azure PostgreSQL Flexible Server using a Service Principal?
Are there any additional configurations or permissions I need to set up on Fabric or PostgreSQL?

Thanks in advance!

Fabric-SP-Issue-b.png

3 REPLIES 3
v-prasare
Community Support
Community Support

@AhmedGamalHamdy, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

@AhmedGamalHamdyAs we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

@nilendraFabric, Thanks for your promt response

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

nilendraFabric
Community Champion
Community Champion

Hello @AhmedGamalHamdy 

 

did you tried adding Fabric’s outbound IP ranges for your region to PostgreSQL’s firewall rules

 

and Deploy Fabric capacity in the same VNet as the PostgreSQL server

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebFBC_Carousel

Fabric Monthly Update - February 2025

Check out the February 2025 Fabric update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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