Search code examples
iisazureazure-virtual-machineweb-farm

How do I setup an Azure Web Farm on multiple VM's using a shared IIS config


I setup a VM running Windows Server 2012 R2 (VM1) and configured it to run IIS. I then created another VM in the same region off an image I made from the first (VM2). These two are in their own availability set located in the West US data center.

Assuming I want to share my IIS configuration and website files between the two servers, I need to setup a location to store and access these files regardless of what server is making changes to them or is online at the time.

Attached storage almost provides a solution, but this can only be tied to a single machine at a time. Files can be stored in a separate Blob storage, but I don't know how to get IIS to read and write to it.

Once I do figure out how to share these files in a manner IIS will accept, I have a second problem where I would need a third VM (VM3) in Europe that would need access to this data as well.

Thank you for any assistance anyone can provide!


Solution

  • You would use DFS (Distributed File System) to accomplish this.

    http://technet.microsoft.com/en-us/library/cc753479(v=ws.10).aspx http://blogs.iis.net/rickbarber/archive/2012/12/05/keeping-multiple-iis-7-servers-in-sync-with-shared-configuration.aspx

    Thanks. -matt