Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Azure web site vs SQL Server Database Mirrroring

$
0
0

Hi to all,

I deployed an azure web site which connects to an azure vm with sql server installed. The connection is made through a public ip address and a specific tcp port and all is working fine.

Then, I configured the sql database mirroring feature for my database using another azure virtual machine in the same virtual network which contains a witness server too. The SQL database mirroring works fine and I am able to failover the database to the secondary server.

Of course, when I fail over the database, my web application (deployed on the azure web site) stops to work because it is not still able to find the database.

So my question is:

how can I configure the connection string of my azure web site to get the connection working both on sql servers? Do I need another public IP address?

The second question is: can I configure my azure web site to connect to my sql server database using a private IP address even if I do not need to configure the SQL mirroring feature?

Thanks to all for your help.

Marco



Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>