I have a vm in azure. And I have a database as well.
I can remolty connect the azure databae from SQLMS, But When I Try to connect from my azure VM. I get A netwrok or related instance while establishing connection to the databse ?
Here is my outbond rules
Any reason ?
Check you settings for the Database Firewall, maybe it is close for your vNET, and check the NSG Rules applied to the VM. In the VM you can check connections with this:
Connection Troubleshooting for VM
Related
I have an application running in Azure Batch which tries to connect to our customer's SQL Server also running in Azure. The connection fails, because the customer has default firewall on the SQL Server and the IP address of the Azure Batch node is not allowed in the firewall rules.
When I try to connect from the Azure Batch application to out SQL Server running in another subscription, the connection is successful.
Why in the first case the connection does not work and in the second case it works?
Is it possible to connect to the customer's SQL Server? I cannot give them an IP address to allow in the firewall, because the IP address of the Azure Batch is dynamic.
The solution is to set this switch to Yes in SQL Server → Security → Firewalls and virtual networks. With this setting, it is possible to connect from Azure Batch application to SQL in another subscription.
We setup a Point-to-Site azure VPN gateway to allow us to connect to our Virtual Machines and azure SQL instance. The gateway is linked to the Virtual Network where our VM's live, and the Azure SQL has a firewall rule to allow connections from That virtual network. We are able to connect to the VM's but not to the Azure SQL.
I tried linking the Virtual network to the Azure SQL through the firewall settings, it didn't help.
I assume you are using Azure SQL database. It's public and does not deploy in a VNet. Also, VNet Service Endpoints don’t extend to on-premises. So It did not help to connect to Azure SQL database over VPN connection. If you want it to work, you need whitelist your on-premise client public IP address in the firewall of Azure SQL database.
Otherwise, you need to deploy your SQL instance in a VNet, so you need to use Azure SQL Database managed instance. You could follow this quickstart: Configure a point-to-site connection to an Azure SQL Database Managed Instance from on-premises
I have Azure app and SQL Database.SQL URL like jdbc:sqlserver://xxxxx.database.windows.net:1433;databaseName=xxxxx that one try connect my local tomcat,its successfully connected.but when try connected from Azure app,I am getting exception
[org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA PoolFiller) IJ000610: Unable to fill pool: java:jboss/DB/DS: javax.resource.ResourceException: IJ031084: Unable to create connection
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1320)
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.fillTo(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1136)
at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open server "App-server" requested by the login. The login failed.
but i can't use from azure app server (VM) from sql Database
Do you mean you application hosting on Azure VM?
If I understand it correctly, you should add Azure VM's public IP address to sql server firewall.
Via Azure portal to add VM's IP address:
Also you should add port 1433 to VM's NSG inbound rules and OS firewall settings.
Please make sure you have set On the "Allow access to Azure services" setting on Azure portal for the Azure SQL database or its logical server. Please see below image.
You need to also specify the user#database on the connection string. Please read here for more details on how to build the connection string.
I am creating a VM on Azure and connect it to an Azure ExpressRoute VNET.
The problem is that I can't connect to the VM via RDP, but it works well if the VM is not on the network.
What can be the cause of this issue, what can I do?
Have you seen this article? The connection may need to be configured differently:
Here is the article: https://azure.microsoft.com/en-us/documentation/articles/expressroute-coexist/
I tried to configure a VPN with default values (10.0.1.x) with a point-to-site feature configured.
Azure Websites has been configured too, using the new Azure portal, to point to the Point-to-Site of the VPN.
When a try to contact SQL server of my VM in Azure (Iaas) fails, while locally on the VM I can do it.
I also configured an end point for the port 1433 on the VM with the relative firewall configuration.
Is there a way to check where is the issue using the website ?
Thanks a lot.
Fabio