Reputation: 3
How could to connect to Azure DB from any ip that uses Azure, Without setting the range 0.0.0.0 - 255.255.255.255 in the firewall?
Upvotes: 0
Views: 741
Reputation: 136126
If by connect to Azure DB from any ip that uses Azure
you mean any applications running in Azure, then it is possible to do so. In the portal where you configure firewall rules, simply turn on "Allow access to Azure services".
What this does is that it creates a special firewall rule with Start/End IP address as 0.0.0.0
. You will not see this firewall rule in portal though.
To do this thing programmatically, simply create a new firewall rule and set the Start/End IP address as 0.0.0.0
.
However if your question is about any client IP address that connects to your database, then I would agree with @Aravind's comment above. You should not allow direct connection to your databases from anywhere but only facilitate it via a proxy service/API layer as mentioned by him.
Upvotes: 1