Add Azure SQL Database to Azure Private Network

  • Does anyone know if this is possible? I can find no resource, Microsoft or third-party which give advice how this can be achieved.

    Example: Application Service hosted in Azure talking to Azure SQL Database hosted in Azure.

    In the Management Portal there are no options which allow you to place your Azure SQL Database in a Azure Private Network (which has already been created and configured).

    Similiary there is nothing within the Networks section to allow you to join Azure SQL Databases to that Network.

    There are suggestions from third-party forums that this is not possible.

  • You can't really do this yet because SQL Database doesn't support Windows logins, so there's no way to add it to a network. Since it only supports SQL Logins, you can log into it from anywhere providing you set up the firewall rules.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thanks Grant. That is helpful info even if it's a 'no'! 🙂

    How would one configure the Azure SQL Database firewall to allow an Application hosted in Azure PaaS to connect? There's no IP address and the PaaS Application must go out onto the internet before coming back in to connect to the Azure SQL Database. How can this be done?

  • SQL Swerver (4/22/2014)


    Thanks Grant. That is helpful info even if it's a 'no'! 🙂

    How would one configure the Azure SQL Database firewall to allow an Application hosted in Azure PaaS to connect? There's no IP address and the PaaS Application must go out onto the internet before coming back in to connect to the Azure SQL Database. How can this be done?

    Good question. I'm not sure. There must be some type of IP address to allow for the firewall rule. I'm assuming you have a DNS within the virtual network and your service is using that to resolve everything. I really thought that would give the service an IP address. I just looked at my services, they do have a "public virtual IP address." I'm pretty sure that's what you'd use, although I could be wrong.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • We are struggling with this at the moment. We cannot utilise an Azure Private Network (APN) as the Azure SQL Database cannot be placed within it (we were hoping that APN would afford us some internal security in that regard).

    The Cloud Service (weblication) uses a URL not an IP address and is not in itself placed within an APN. Therefore it sounds like this set up (Azure - Azure) is not feasible at this moment in time?

    So, if the weblication was within an APN, does that mean it WOULD have an external IP which could then be directed to (and given a FW rule) to allow access?

  • SQL Swerver (4/22/2014)


    We are struggling with this at the moment. We cannot utilise an Azure Private Network (APN) as the Azure SQL Database cannot be placed within it (we were hoping that APN would afford us some internal security in that regard).

    The Cloud Service (weblication) uses a URL not an IP address and is not in itself placed within an APN. Therefore it sounds like this set up (Azure - Azure) is not feasible at this moment in time?

    So, if the weblication was within an APN, does that mean it WOULD have an external IP which could then be directed to (and given a FW rule) to allow access?

    I have services within my APN and they have IP addresses. I don't have services external to the APN, so I can't say for sure how they work.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • If you have some Linux Machine you could setup a SSH Tunnel to Connect to your Database

    http://kelsondev.blogspot.com/2012/05/connect-to-azure-sql-through-ssh-using.html?m=1

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply