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
quantumleaper
New Member

Data Source Connection Properties, Azure SQL question

I have a paginated report that gets data from an Azure SQL Server.

In the SQL code in the Dataset, one column is CURRENT_USER that gets me the AD user email address when running the SQL code outside the report.

 

When uploading the report to a Power BI Workspace the CURRENT_USER column is empty.

 

How do I configure the data source in Power BI report builder without adding user/PW in the data source and use 'ActiveDirectoryIntegrated'. Tried a lot of settings but don't get it to work.

 

Either I have to add a user in the data source or it dont work in the report.

Used 'ActiveDirectoryIntegrated' in Advanced properties.

 

Thanks.

 

1 REPLY 1
v-deddai1-msft
Community Support
Community Support

Hi @quantumleaper ,

 

Your issue is more related to azure sql db. I would also suggest you open a thread in azure sql db forum. 

 

As far as I know, you can use ActiveDirectoryIntegrated in connection string :

Untitled picture.png

 

Use connection string like below:

string ConnectionString = @"Data Source=n9lxnyuzhv.database.windows.net; Authentication=Active Directory Integrated; Initial Catalog=testdb;";
SqlConnection conn = new SqlConnection(ConnectionString);
conn.Open();

 

For more details, please refer to https://stackoverflow.com/questions/49771761/azure-sql-database-active-directory-integrated-authenti...

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

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.