Contents » Using WinSCP » Guides » Cloud Computing » Azure »

Installing Secure FTP Server on Microsoft Azure using IIS

You may want to install a secure FTP server on Microsoft Azure Windows instance either as standalone file storage or to have means of editing your website hosted on IIS (Internet Information Services) web server. In both cases, you can use an optional FTP Server component of the IIS. It can be installed standalone or along with a Web Server.

RDP to the Azure Instance

To RDP to the Azure instance:

  • On your instance dashboard on Azure Management Portal click on Connect on the bottom bar.
  • “Open” the .rdp file and connect to the server.

Installing FTP Server

Follow a generic guide to installing secure FTP server on Windows.

When installing, bear in mind that Microsoft Azure Windows servers

Endpoint Provisioning

You need to provision endpoints (forward ports in Azure firewall/NAT) for use with FTP server:1)

  • Provision endpoint for FTP control connection:
    • On Endpoints tab of your instance page on Azure Management Portal, click Add on bottom bar.
    • On Add an endpoint to a virtual machine step, select Add a stand-alone endpoint.
    • Proceed to Specify the details of the endpoint step and select FTP in Name box.
    • Complete the wizard and wait for the endpoint to be configured.
  • Provision endpoints for FTP data connections according to the range you specified when setting up the FTP server:
    • For a narrow range, provision the ports one-by-one on Endpoints tab of your instance page. For each port of the range, add a “standalone-alone” port with the same private and public port and a unique name (e.g. “FTP-Data-5000”).
    • For a wide range, you should better automate the task using PowerShell Add-AzureEndpoint cmdlet:
      • Download and install Azure Windows PowerShell cmdlets.
      • Run Microsoft Azure PowerShell from a Start menu.
      • Enter Get-AzurePublishSettingsFile command to download the .publishsettings file for your Windows Azure subscription.
      • Paste the following code to PowerShell console.2)
        Do not forget to use correct path to .publishsettings file, name of the cloud service and virtual machine instance, and to modify the range in for loop according to the port range you set up in FTP Server (note that Azure allows only up to 150 endpoints).

        Import-AzurePublishSettingsFile C:\Users\martin\Documents\Martin-credentials.publishsettings
        $VM = Get-AzureVM -ServiceName "winscp-windows" -Name "winscp-windows"
        for ($Port = 5000; $Port -le 5100; $Port++)
            $VM = $VM | Add-AzureEndpoint -Name "FTP-Data-$Port" -Protocol 'TCP' -LocalPort $Port -PublicPort $Port
        $VM | Update-AzureVM

Connecting to Your FTPS Server

Your secure FTPS server is now running and can be connected to.

Further reading

  guide_azure_ftps_server.txt · Last modified: by martin

Search Documentation

This page


About donations

$9   $19   $49   $99

About donations



Site design by Black Gate