Unable to connect to SQL Server Analysis Services using Azure Hybrid Connection - azure

We have configured the Azure Hybrid Connection in the App Service which we want to access the SQL Server Analysis Services from On-Prem server. The port configured in Hybrid Connection is 2383. The connection status is showing connected on both the Azure and in the Hybrid Connection Manager of the On-Prem server. But when we run the application it is throwing A connection cannot be made. Ensure that the server is running.

Most probably you might be having issue with TLS version that is currently enabled on your on-premises server. A detailed article on how to tackle each and every problem that you might be facing with the HCM can be found here.
Hope this might be sufficient to solve all your problems.

Related

Two-way Hybrid Connections

I established a Hybrid Connection from App Service to on-premises by using Hybrid Connection Manager (HCM).
Is it possible to connect the other way from on-premises to the App Service?
This would be needed to have a two-way communication channel.
To be clear: I don't need any help regarding the setup of the Hybrid Conenction Manager. Everything is working fine. I also can reach the on-prem resource from App Service by using curl. So is there a way to curl the App Service from on-premises server where HCM is running?

How to connect on-premises server to azure server?

I'm trying to make a connection between on-premises server and azure server. I tried to ping the azure server IP from on-premises server but no connection was made (Note: I'm on a free-trial plan). I did some research and found out either VPN setup / ExpressRoute is required. My question is:
is it possible to make a connection in free-trial plan?
is there any way to make a hybrid connection without setting up VPN/ExpressRoute?
I believe it is, but it will cost you whatever the cheapest VPN costs (basic SKU).
Azure Service Bus Relay might be an option, depending on what you are after
Firstly, make sure you have set the Azure SQL database firewall settings, then the Azure SQL database will allow the connect from the On-premise SQL Server.
Azure SQL Server doesn't have the IP property, you must use the fully qualified name to connect to the SQL Azure server, format like:
[servername].database.windows.net
You can get this On portal:
Hope this helps.

How to connect Azure Web App througt a Hybrid Connection to Oracle Linux

I was looking for the way to connect my Azure Web App using a hybrid connection to my On Premise Database server, Oracle Linux.
Any suggestions?
greetings.
Unfortunately, Hybrid Connection Manager does not Support for Linux. The Hybrid Connections feature requires a relay agent in the network that hosts your Hybrid Connection endpoint. The reply agent (HCM) is not supported on anything earlier than Windows Server 2012. Refer to this doc: Azure App Service Hybrid Connections.
Also, you can vote this for HCM Support for Linux so that Azure App Service Team will receive your feedback and will have a support plan in the future.
It is recommended to run Oracle Software on Azure which brings scalability, flexibility, security, and performance to your Oracle workloads—while reducing the cost of infrastructure management. You can see the list of Oracle images.

Azure hybrid connection Manager does not work

Requirement
I have an On-Premise SQL Server and an Azure webApp Service that needs to talk each other. I installed Hybrid Connection Manager on another computer which is in the same LAN as the SQL server. Let's refer this computer as the Connection PC.
The working part
Installation and configuration was straight forward, status of the hybrid connection showing as connected.
Tested the WebApp on localhost, it worked fine. Which means nothing wrong with the asp.net code
SSMS on the connection PC can access and query SQL DB
I installed a test SQL DB on the connection PC itself and use the WebApp to talk to the test DB instead, It worked fine.
The Problem
After tested ok on localhost, I published ASP.Net WebApp to Azure, it gave following error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
troubleshoot attempt
Does that mean Hybrid Connection manager has to be installed on the same computer that runs SQL Server?
I did attempt to install HCM on the SQL Server, but it says it cannot work with Win2008R2. The connection PC has win2012 on it. So it can have HCM.
I just do not have time to migrate the SQL Server to another server. So I hope HCM does not have to be on SQL server.
Connection String
In my webapp, the connection string is as follows.
connectionString="metadata=res:///ScaleDataModel.csdl|res:///ScaleDataModel.ssdl|res://*/ScaleDataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=WIN2008R2\DataPlus;initial catalog=DataPlus;persist security info=True;user id=test;password=testpass;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient"
Hybrid Connection communicates via TCP ports thus you need to specify the listening static port in your connection string like:
Data source=ServerName:Port;
Also here is an actually detailed article about the all problems you may encounter while working with Hybrid Connections.
Hope this helped you.
Since you have a hybrid connection, your connection string should have the endpoint name of your hybrid connection as the data source. Try replacing it.

How to run the Azure Cloud Service without using Sql Azure Database?

My azure application successfully running with azure sql database,but now i want to run Cloud application with my own database servers because of their data security. for this, we can establish the local database connection from our own systems with cloud application and connect to my database perfectly with following steps using below link,
http://www.codeproject.com/Articles/261063/Azure-Virtual-Network-Connecting-Local-Database
After this i deployed my application in to azure and it deployed without any error.but when i try to run my cloud application using cloud url like xxx.cloudapp.net getting an error like
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The requested name is valid, but no data of the requested type was found.)".
Please give some suggestions why am getting this error.
Thanks,
PCSSCP.
Try connecting using SQL Management from another machine outside of your network. I believe that there is no problem with publication in Azure Cloud Service, but a connectivity problem with your SQL server.
Arthur Oliveira
You have to remote to VM and check SQL Server port is opened or not, the same with SQL Server machine. I used to connect local DB with cloud based application.
This is an intermittent issue with the SQL Server.
Check this link if it helps,
IntermittentSQLServerIssue

Resources