How to Deploy a File Server On Microsoft Azure

Many Microsoft clients are looking to replicate their on premises infrastructure in Microsoft Azure. A File server is typically a core component of such an infrastructure.

GETING STARTED

  • Microsoft Azure Subscription
    • If you do not have an Azure account, please create one using the following link Azure Portal .
  • Creating an Azure Virtual Machine (VM) running Windows
    • To create an Azure VM. Select “Windows Server 2012 R2? from the template gallery, available in the “From Gallery” link. Once the VM is created please connect to it, see how here .

FileServer

FileServer1

First time you access the VM, a quick warning message “RDSH is not configured” might come up . This is normal and you do not need to worry about it.

  • Configure the Azure VM
    • Open HTTP port
      • Logon or go back to Azure Portal. Select “Virtual Machines” from the left column.

FileServer2

  • On the right window, click the VM, then select “ENDPOINT”

FileServer3

  •  At the bottom of the screen select “ADD”, the ADD ENDPOINT window appears. Select “ADD A STAND-ALONE ENDPOINT” , then click on the arrow pointing right (bottom of the opened window).

FileServer4

  • Specify the details of the ENDPOINT as per screenshot below.

FileServer5

If the name “web” is not in the drop down menu, just type it in, then hit the tick button to save your newly created ENDPOINT.

Go back to your VM and Start “Server Manager” (if it is not already running), by clicking on the server manager icon on your task, then select “Add Roles and Features”.

 FileServer6

FileServer7

  • On the “Add Roles and Features” wizard window select next. Do the same at the installation type and select “Role-based or feature-based installation”.
  • Select next again at the server selection by accepting the default.
  • At the server Roles add the Web Server (IIS) Role select Next.

FileServer8

  • Click on the “Add Features” button (This will take you back to the first screen with the Web Server (IIS) role selected) . Select Next when you see the “Add Roles and Features Wizard” window.

FileServer9 FileServer10

  • Select Next again

FileServer11

  • Select Next

FileServer12

  • Select Next and make sure the ticks included as per screen below.

FileServer14

BEFORE hitting the Next button, scroll down and select “Windows Authentication” then hit the Next button.

FileServer15

  • Click on the “Install” button.

FileServer16

ONLY when the installation in progress is completed, click on the close button NOT BEFORE.

FileServer17

CONFIGURING WebDAV

  • Start the IIS manager tool on the VM by browsing to “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools” and double click on “Internet Information Services (IIS) Manager” shortcut. When the IIS Manager window opens, expand the list on the left and click on “Default Web Site” then open “Authentication” and enable it.

FileServer18 FileServer19

  • Select the “Default Web Site” menu from the left hand side column then open “WebDAV Authentication”.

FileServer20

  • Click on “Add Authoring Rule” .

FileServer21

  • Select option as per screen below and then hit OK when it is done.

You may modify it as needed. But for the purpose of the demo I have selected these options.

FileServer22

  • Click on the “Enable WebDAV”, then close IIS Manager window.

FileServer23

TESTING ACCESS

As we opened port 80 and installed IIS, we should be able to browse to the VM using the internet DNS name. To do that, go back to Azure portal.

  • Select the VM from the left column.

FileServer24

  • From the right window select your VM by clicking on it, then select “DASHBOARD” and look for the DNS NAME. It will look something like this yourvm.cloudapp.net. Copy the DNS NAME. Open internet explorer on your local machine. Enter the following http://yourvm.cloudapp.net in the internet explorer address bar . If your configuration were correct, you should get an “Internet Information Services” page.

FileServer25

DRIVE MAPPING

  • From your local machine open Windows Explorer, then right click on network and select “Map network drive”.

FileServer26

  • Enter the address of the IIS server http://yourvm.cloudapp.net and assigne it a letter then click finish.

FileServer27

  • Windows security will open. Type in the domain name of your VM and log in credentials and then hit OK.

FileServer28 FileServer29

At this stage you can configure the directory structure and grant access to other users.

USEFUL LINKS

 

 

 

 

 

 

One Response

  1. jeff fontenot March 3, 2017 Reply

Leave a Reply