Creating an FTP Site in Azure with Azure Storage File Share – bitScry (2024)

If you want to host an FTP site in Azure there’s currently not a dedicated resource for this so the next best option is to spin up a virtual machine and use IIS for running the FTP site. It’s also possible to set the FTP site to use an Azure Storage file share to host the files, from there they can either be accessed via UNC or moved directly to blob storage.

Virtual Machine

When creating a virtual machine in Azure a bunch of other resources get created along with it such as a network interface and a virtual network so I’d advise creating a new resource group to hold all of these to make them easier to manage.

I initially created a B1S virtual machine but this didn’t have enough RAM to install IIS so the cheapest machine I’d suggest using for this is the B2S.

When you create the VM the main things to watch out for are that the storage account should have a name of 20 characters or less and that the name is not the same as that for the VM. You’ll also need to allow traffic on port 3389 to allow you to remote desktop into it.

Once your VM has been provisioned go to it’s networking settings in the Azure portal and add port 21 and the range 9990-10000 to it’s inbound ports.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (1)

Within the Azure Storage account that’s created when you provision the VM go to Files and add a file share, when this has created click on it in the portal and then click Connect, this will open a blade containing PowerShell commands for adding the file share as a UNC drive to a Windows machine, copy this code and save it somewhere as you’ll need it later.

IIS

Log into the VM using the admin credentials set at creation and open PowerShell, run the code copied from the file share blade in the Azure portal to add it as a UNC drive.

Next you need to install IIS on your server, this can be done from the Server Manager dashboard by choosing Add Roles and Features from the Manage menu and choosing the following options as specified here.

  • Proceed to Installation Type step and confirm Role-based or feature-based installation.
  • Proceed to Server Roles step and check Web Server (IIS) role. Note that it is checked already, if you had IIS installed as a Web Server previously. Confirm installing IIS Management Console tool.
  • Proceed to Web Server Role (IIS) > Role Services step and check FTP Server role service. Uncheck Web Server role service, if you do not need it.
  • Proceed to the end of the wizard and click Install.
  • Wait for the installation to complete.
Creating an FTP Site in Azure with Azure Storage File Share – bitScry (2)

In order to have your FTP server play nicely with the Azure Storage file share you need to create a user capable of logging into the file share as the UNC path needs to be referenced rather than the mapped drive used within Windows which was added by the PowerShell commands above, as explained here.

Users can be added though Tools > Computer Management in the Server Manager. The username should be the name of the storage account and as usernames can’t be over 20 characters long or have the same name as the VM this is the reason for the restrictions in naming our storage account earlier. The password should be the access key for the storage account and “User cannot change password” and “Password never expires” should be selected. This user should then be added to the IIS_IUSRS group.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (3)

Once the connecting user has been added you need to create the FTP site, this is done from Tools > Internet Information Services (IIS) Manager in the Server Manager.

First add the ports that you opened in the Azure Firewall to the FTP Firewall Support setting at the server level, the external IP address should be that of your VM.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (4)

Next, right click in Sites and add a new FTP site, the physical path parameter should be the UNC path to your file share, rather than the drive alias used by Windows.

When creating an FTP site you should disallow anonymous authentication and use basic, users can be granted access by adding them in the local users step above an either assigning them to a relevant group or just granting all users of the machine access to the FTP site.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (5)

You will now have an FTP site set up and available but if you try to connect to it you’ll get an access denied error, this is because FTP on IIS fails to pass through the credentials and so you need to set these explicitly. This is done from the Basic Settings dialog in the right hand menu bar of the FTP site, within the connect as section of this enter the username and password of the user you created earlier (this will be the name of your storage account and the access key), once done save and then test the connection settings.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (6)

The FTP site should now be up and running and uploaded files saved on the Azure file share!

Next Steps

My ultimate goal for this was to get the uploaded files into Azure Blob Storage, however the file share is separate to this and so the files still need to be moved once uploaded, this can be done by setting up a logic app (among other methods) but I haven’t got round to doing this yet. Another option would also be to have a console app monitoring the FTP folder and then transferring the files over once they’ve been uploaded, this would also do away with the need for the fileshare.

Creating an FTP Site in Azure with Azure Storage File Share – bitScry (2024)

References

Top Articles
Unraveling The Mystery: King Von's Autopsy
Unraveling The Mystery: King Von Autopsy Released
Tyler Sis 360 Louisiana Mo
Average Jonas Wife
Safety Jackpot Login
2024 Fantasy Baseball: Week 10 trade values chart and rest-of-season rankings for H2H and Rotisserie leagues
Watch Mashle 2nd Season Anime Free on Gogoanime
Blairsville Online Yard Sale
Azeroth Pilot Reloaded - Addons - World of Warcraft
What Does Dwb Mean In Instagram
Https://Gw.mybeacon.its.state.nc.us/App
What Is A Good Estimate For 380 Of 60
REVIEW - Empire of Sin
House Party 2023 Showtimes Near Marcus North Shore Cinema
Katherine Croan Ewald
Dignity Nfuse
Mission Impossible 7 Showtimes Near Marcus Parkwood Cinema
Ups Print Store Near Me
How many days until 12 December - Calendarr
Miltank Gamepress
Wkow Weather Radar
Caring Hearts For Canines Aberdeen Nc
Urban Dictionary Fov
Walgreens On Bingle And Long Point
Garden Grove Classlink
Truck from Finland, used truck for sale from Finland
Restored Republic
24 Hour Drive Thru Car Wash Near Me
Wega Kit Filtros Fiat Cronos Argo 1.8 E-torq + Aceite 5w30 5l
Craigslist Central Il
Lowell Car Accident Lawyer Kiley Law Group
Everstart Jump Starter Manual Pdf
What Time Does Walmart Auto Center Open
Skroch Funeral Home
Hair Love Salon Bradley Beach
Craigslist Neworleans
Car Crash On 5 Freeway Today
Arcane Odyssey Stat Reset Potion
Why Gas Prices Are So High (Published 2022)
Tokyo Spa Memphis Reviews
Craigslist Ludington Michigan
Uvalde Topic
Man Stuff Idaho
My Gsu Portal
Christie Ileto Wedding
Random Warzone 2 Loadout Generator
Horseneck Beach State Reservation Water Temperature
Wwba Baseball
View From My Seat Madison Square Garden
Where To Find Mega Ring In Pokemon Radical Red
Les BABAS EXOTIQUES façon Amaury Guichon
Room For Easels And Canvas Crossword Clue
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 5686

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.