I have an Azure SQL Database and Azure Virtual Machine with an application connecting to the database.
They are in the same data center and under the same Azure subscription.
I added the public virtual IP address of the virtual machine to the list of allowed IP addresses on the portal management server configuration page.
Windows Azure Services is marked Yes in the Allowed Services section.
When I try to connect, I get an exception: "The client with the IP address" xxxx "is not allowed to access the server.", Where xxxx is the internal IP address of the virtual machine. I hesitate to use the internal IP address in the allowed IP rule. Should SQL Azure see the public IP address of the virtual machine during the connection?
source
share