locked
Connecting a scalable Azure Website to Azure VM with database server RRS feed

  • Question

  • Hi,

    We have a situation in which we are porting our services from IIS on VM to Azure Websites. Our database, which the website needs to access, is on a VM in Azure. To get it up and running a.s.a.p. i opened up a port on the VM and set the VM firewall so that only that particular website is able to access the database server from outside. Now we would like to make the Website scalable...that's easy to setup but we then wondered if the access to the database server is still good. The point is that the acccess to the database server is granted to an IP and the question is....do the multiple instances of the website share the same IP or do they use different IP addresses?

    Regards,

    Pascal

    Friday, November 7, 2014 2:19 PM

Answers

All replies

  • Hello PWHPelzer,

    I understand that you had an On-premise IIS hosted website that you migrated to Azure websites. You opened the port on the Azure VM that is hosting your Database for the website to access it. 

    Please help me understand how were you able to obtain the IP of the website to give access to your database on azure. 

    Also for your question, if you have already opened the port for the Azure website on your VM (database) and increase the number of instances, it would ideally be created under the same cloud service and the IP should not change for the same website. 

    I hope that this information is helpful. 

    Thanks,
    Syed Irfan Hussain
    Friday, November 7, 2014 3:29 PM
  • Have you looked at Azure Websites Virtual Network integration? That might help you solve your problem more reliably

    http://azure.microsoft.com/blog/2014/10/30/using-vnet-or-hybrid-conn-with-websites/


    Friday, November 7, 2014 7:47 PM
  • Hello all,

    First, thanks for replying.

    @Syed, your are right by stating that we are migrating from IIS to Azure websites...but the IIS is not on-premise but on a Azure VM. We made the websites and with a ping we got it's IP. That IP we put into the firewall of the database Azure VM as allowed to connect from outside to the database server.

    You state that the IP would "ideally" remain the same even when using more instances. That was the answer i was looking for, althought the "ideally" doesn't sound confident.

    @Zain, that's probably a better option indeed. I will have a go at that.

    Thanks


    Monday, November 10, 2014 9:20 AM
  • Hello PWHPelzer,

    When you add instance to the website, the underlying hardware (the VM) on which your website is residing will be created in the same cloud Service, and the IPs for the VM would not change.

    However, you also might want to consider the what is Suggested by Zain Rizvi. I hope that this information helps.

    Thanks,
    Syed Irfan Hussain

    Monday, November 10, 2014 6:02 PM