Hi ,
Thanks for reaching out to Microsoft Q&A.
If you can connect to your azure database using SSMS and azure Query Editor but not from Power BI, the issue likely lies in network settings, authentication methods, or driver compatibility.
- Check Firewall Rules in Azure
- Go to Azure Portal > SQL Server (or Synapse, or other DB service) > Networking.
- Ensure that "Allow Azure services and resources to access this server" is enabled.
- Add your client IP (PBI machine's IP) to the Firewall Rules.
- Verify Authentication Method
- Power BI may require a specific authentication method.
- Check Power BI's authentication settings:
- If using SQL Server Authentication, ensure you’re using the correct credentials.
- If using AAD, ensure your account has DB access.
- If using MI, check role assignments in Azure.
- Use the Correct Connector in Power BI
- Open Power BI Desktop.
- Go to Home > Get Data > Azure.
- Choose the correct connector:
- Azure SQL DB -> for PaaS SQL DB.
- SQL Server -> for IaaS VM SQL Server.
- Synapse Analytics -> for Synapse.
- ODBC Driver -> for other scenarios.
- Check Encryption and Connectivity Options
- If your azure SQL requires TLS 1.2, ensure you have the latest ODBC driver installed.
- In PBI, go to advanced options and try:
- Disable Encryption (
Trust Server Certificate = True
).- Set connection timeout higher (30+ sec).
- Disable Encryption (
- Verify Network & Private Endpoints
- If your DB is using Private Link, ensure Power BI is on the same VNet.
- If using a VPN or ExpressRoute, test a direct internet connection.
- Test with ODBC
- Install the latest ODBC driver for Azure SQL.
- Configure an ODBC DSN and test it in PBI.
- Check Service Principal / Role-Based Access
- If using AAD authentication, ensure your account has the "db_datareader" role in Azure SQL.
- Use Power BI Gateway (If On-Premises DB)
- If your database is on Azure VM (IaaS), install and configure an On prem data gateway.
- Try Power BI Service Connection
- If publishing to PBI Service, configure Data Source Credentials in PBI Settings.
Possible next steps:
- Test connection in PBI with different auth methods.
- Use ODBC / SSMS connection string.
- Check Azure network security settings (firewalls, private endpoints, and NSGs).
- Use Power BI Gateway if connecting to an Azure VM.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.