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