Power BI Desktop cannot connect to azure SQL - azure

I am trying to establish a connection to an azure SQL database from Power BI Desktop. I enter the server and database names as per the following screenshot:
I keep getting the following error:
Additionally, I am able to connect form the same Power BI Desktop to another azure SQL database on the same azure SQL server.
I checked for typos, for the azure firewall settings including my client IP and for "Allow access to Azure services" set to ON. The fact that one of the databases in the same server is connecting correctly make me consider if there is a limitation on Power BI desktop to one only database per azure SQL server.

I was finally able to establish the connection with the azure SQL server by replacing Server field above with: tcp:myServerName.database.windows.net,1433 and leaving the Database field empty.
This allowed me to connect to both databases in the server and didn't request credentials.
Somehow power pi desktop was not letting me create a new connection to another database under the same server. This has not been made clear in Power BI desktop documentation and examples.

Related

how to open Azure SQL SERVER in office network, I am able to open AZure SQL Using my Home network in SSMS but cant open in Office network

I am not able to open Azure SQl Server in my Office network using SSMS
I can open Azure SQl SERVER using my home network from SSMS.
Please help me how can I configure Azure SQL SERVER in office network and work using SSMS.
Thanks
The error usually means the TCP port is not properly set or is being blocked by the firewall.
To access the Azure SQL database from your local, ensure that the firewall on your network and local computer allows outgoing communication on TCP port 1433.
There are some troubleshooting steps provided in detail in this MS document for the same error message.

Cannot connect to SQL Server from logic app

I'm having trouble connecting to my SQL Server in an Azure Logic App.
I've just created a fresh SQL Server and database and am now attempting to connect to it in my logic app. However, it doesn't appear to be showing when I enter my credentials. I've been following this tutorial.
Does anyone know why this might be the case? Is it perhaps a permission thing that I may have missed?
I've also found that if i do an AD connection, I get this:
Try this for connecting to your DB:
first of all, try to connect with Azure AD Integrated here, and if you don't see your SQL Server and DB in the list try the next step
go to Resource Group where you created LogicApp and find the connection name that you used when trying to connect with Azure AD Integrated. You need to open it and click on Edit API Connection. In Authentication Type use SQL Server Authentication and other data to connect to your DB here.
Make sure you are allowing azure services to access your database server at
SQL Server > Firewalls and virtual networks > Allow Azure services and resources to access this server = Yes

Connection log for Azure SQL Database

I need to make a system to system connection to an Azure SQL Database.
To enable connection to Azure SQL Database, I need to open the firewall to the connecting systems IP.
I think I have the wrong IP address to the system that is trying to connect to my Azure SQL Database - but I have no way of verifying it.
How do I see which IP that has failed connecting to an Azure SQL Database.
Please enable Auditing on Azure SQL Database.
If your database already had Auditing enabled, then visit the dashboard.
After that click on "Azure SQL - Security Insights".
Now choose "Distribution by success".
How do I see which IP that has failed connecting to an Azure SQL Database?
The answer is no, we can not get the IP which failed connecting to the Azure SQL database.
What we can get is the sum/count of Failed Connections :
Hope this helps.

error connecting Power BI enterprise gateway on an azure machine

I have created a virtual machine on Azure using Image SQL Server Data Center for SQL Server 2014, and created some SSAS cubes on that machine. I am able to access cubes from management studio. I want to access those cubes from Power Bi. I have installed Power Bi gateway on that machine, and connected cubes using live connect method. I further installed Power Bi Enterprise gateway to enable refresh of my cubes to Power BI cloud. Now when I am trying to connect to SSAS on Azure machine using PBI Gateway I am not able to connect, it gives me error "There are currently no logon servers available to service the logon request." On the other hand when I am trying to connect to SQL Server database engine on the same machine from PBE gateway, I am able to connect without any problem. The azure machine is not part of a domain yet, is this may be a reason why I am getting error connecting to SSAS instance from Power BI gateway.
I made this machine an active directory domain controller, and so this machine is now part of an active directory. Now I am able to connect SSAS instance on this machine to PBI Enterprise gateway, but my problem did not end here, I am still not able to refresh my dataset which I have sourced from the SSAS cube on the same machine. I am getting error "Data source access error. Please contact gateway administrator"
Further I added a new user to Active directory, with same name as I was having an account in Power BI. I further changed UPN of that user in Active directory to that of my Power BI User. Let say name of my domain was domain, and upn was domain.local, and new user I created in AD was NDubey#domain.local, I chnaged the UPN to NDubey#ABC.com, as this was my login name in Power BI. After that I was able to see data in my datasets populated from SSAS cubes.
Verify that the Network Interface for the VM is using the expected Network Security Group, and the Network Security Group has the correct Inbound and Outbound Security Rules for the ports used by the PBI Gateway.

Connecting ASP on Azure Virtual Machine to Azure Db

Has anyone ever connected ASP (ASP, aka classic not .NET) to an Azure db? I've had three experts looks at connection strings, endpoints, firewalls, db accounts and they're finding
the database works and contains data
the database is accessible remotely by our local machines via Visual Studio and SQL Server Manager
ASP runs on web server on the VM machine
All the connection strings offered by Azure fail
All db related ports are open
If you're connecting to the Azure DB from SSMS, everything is probably configured properly.
Which client library are you using to connect to the Azure SQL instance? You may need to download and install the MS SQL Native Client on the VM, which I know works.
Are you using ADO in your app? If so, and assuming you have installed the Native Client, this connection string will work:
Driver={SQL Server Native Client 10.0};Server=tcp:[serverName].database.windows.net; Database=myDataBase;Uid=[LoginForDb]#[serverName];Pwd=myPassword;Encrypt=yes;

Resources