Allow SQL Database to join Virtual Network (VPN)
I have Cloud Service with web/worker roles connected to SQL Database (web edition).
I also have Virtual Network with point-to-site client (P2S) connection, but I cannot connect to my SQL Database (web edition) via VPN (eg using SSDM). Instead I have to use internet connection.
IP address assigned by my ISP has short lifetime and is reset daily. This means that almost every time I want to perform Admin tasks, I have to log onto Windows Azure portal to change my IP address in the SQL database firewall (defining a range of addresses is not an option).
VPN would mean I just need to set firewall address list once, and I also like the additional layer of security offered by VPN. P2S requires certificate installed on each client computer, so if passwords / desktop apps did fall into wrong hands, no one would be able to use them to connect from another computer.
Tom Aebi commented
This would be a great feature! We are looking for a couple of DBs on azure and Azure SQL would fit best (paas). The DB should provide several Cloud App Services with synced data to build up a stand-alone instance (services and data with occasionally access on premise resources through vpn). So we’re looking for an extra level of access protection as a NSG on a subnet can. Another scenario is a hub DB for integrating mobile apps via mobile app services with the same need for access protection like v-net, subnet, NSG.
Rodrigo Souza commented
The biggest mining company in the world isn't using Azure SQL DB as much as we want because on this.
Anil, I agree. In the interim, if you are assigning this to a worker role that doesn't have a public endpoint, could you define a custom endpoint. Example:
<InputEndpoint name="ReservedIPEndpoint" protocol="tcp" port="10100" />
Your application wouldn't actually have anything on that port, but it would be enough to allow you to associate a reserved IP.
Jen Stirrup commented
Hello Guy, what's your email address? This is a blocker for my customer.
Anil Raut commented
In one of production setup, we would like worker Role in VNET middle tier Subnet to add in Azure SQL firewall for IP restrictions. The frustrating part is Worker Role with Reserved IP error out in deployment as it expects at least end point which in our case DO NOT HAVE ANY because communication between Web and Worker Role is through Service Bus.
Web Role with Reserved IP works perfectly fine as it has input endpoint 80/443
So we had deploy worker role w/o Reserved IP which works fine but in long run we intend to have Reserved IP for Worker Role just for including in Azure SQL (Paas) firewall to restrict all inbound except Worker Role and Web Role. Both Roles at present are in VNET with 3 SUBNETs we planned each for Web Worker and SQL Server which is in separate region.
I'm assuming, if we could add VNET into the Azure SQL DB Firewall , probably we may not need Reserved IP which at present is the only reason and unfortunately not working without end point to deploy worker Role.
Not sure, if this is possible out of the box at present or would be possible only after public availability of this feature.
Would adding SQL Azure to VNET reduce latency as well?
We have been trying to figure out a work around to establish a secure connection between Azure hosted VM and data services.
Came across your post through one of my superior and it is comforting to know that we are on right track.
Integrating a SUBNET to the database service and configuring an azure firewall to specify the allowed IP range is a great idea.
Unfortunately in the current world it only works when access to the originating public IP is also granted.
We need ability to allow access to a subset of Azure services. For example, allow certain Azure subscription(s)/resources to access the firewall but not just any random Azure service someone spins up.
Scott Hooper commented
+1. Honestly, this is a terrible oversight. I just gave myself RSI removing a bunch of manually-added IP's, only to get the "only one operation..." error. If only I'd known before! Is it any better now that I know? No! Because now I have to do them one at a time with extra clicks in between. Given the nature of how people use these firewall rules, eg: everytime the ISP bumps the router we have to add a new rule - some ISP's do this quite regularly, I don't think it's such a huge ask to be able to bulk delete. It's not a huge security risk to have old IP's there (I mean, the stars would seriously have to align for there to be a breach as a result), but occasional cleanups should be encouraged and we should be able to manage them a lot easier than this.
Hi there, we are investigating exactly this senario at the moment , specifically the idea of using a paas sql database to be accessed within an ase app service accessing sensitive corporate information.
Paul Middleton commented
I would be interested in talking about this feature. We currentl have a HIPPA application in production running on Iaas and are looking to convert to Paas this year. One of the sticking points is having the Sql Db open to connections from all of Azure, as it is today. Being able to limit the connections to just our VNet is important from a security standpoint, due to government regulations.
A quick question - Are you planning support for V1 or V2 VNets? I ask because we are also looking at Application Service Environments and they currently only support V1 VNets, so I'm curious which way you are thinking for Sql.
Christian Forjahn commented
By now you can only limit connections to IP Adresses. There is no way to limit connections from within the azure network to certain WebApps for example.
One way could be to make databases accessible through VNets. Another one to limit them by name.
Ian Powell commented
Database Settings > Firewall setting.
After awhile lots of firewall rules appear. Trying to delete them all means
1. Delete Entry > wait
2. Save changes > wait
Pretty tiring to do this for 10+ entries
rajan bhaana commented
any update on this? I see you have moved REDIS premium to VPN Now,
can we do same with this ASAP?
stopping us to move lot of sites to azure.
Any news? We can't proceed to Azure until this is implemented.
You should try using "Cloudbacko Pro" for taking backup as with backup it helps in restoring also, I am basically using using their MS SQL Software for taking backup. Thus if you want to know more about this software. Just Google: Cloudbacko Software or visit: http://www.cloudbacko.com/sql-backup.jsp
Vinicius Salvati Melquiades commented
When I try to delete more than one Firewall rule, an error appears saying "Only one operation on firewall settings is allowed per save action." It would be useful to either remove the limitation, or, at least, have the Portal send many posts, one for each operation, so that we don't have to click the save button many times.
I think for any INTRANET application this is highly required option. Moreover Highest voted issue also
Junaid Mufti commented
I cannot find the option to bulk delete the Firewall rules that have been added over a period. Deleting them one by one will take ages. It would be nice if I could just truncate them all with a couple of clicks,
James D. Schwarzmeier commented
Agree. Two changes would make it a lot better:
1) Trim the input fields! If you copy/paste an IP from elsewhere, a single trailing space will produce an error.
2) Allow multiple changes in one save. If this just isn't possible, the UI should prevent you from making other changes until the blade has been saved. I've wasted a lot of time getting all my settings just right, only to find out I have to redo them one at a time.