This week, I had a client problem that gave me an opportunity to setup a test Azure environment to solve and test.
So, I thought I'd make a video of the whole thing, and bring you along, so you could learn along with me.
In this video, I walk through setting up a new Azure Storage Account with SFTP enabled, then setting up PowerShell automation to turn SFTP on and off to save money. I start with a blank Azure subscription, and add the following resources:
🔶 Azure Storage Account
🔶 Resource Group
Then, I test the SFTP connection with WinSCP (no automation).
Next, I create an Azure Automation account in order to setup a script to turn on and off SFTP on a schedule.
I test this automation schedule and show that SFTP is turned on and available at a certain time of day.
I hope that this tutorial is helpful to you in your Azure cloud journey!
Two specific instances in which this setup would be helpful:
💎 If you don't want to setup and maintain a virtual machine (VM) in order to host a SFTP server, but don't want to pay $250/month to have SFTP turned on all the time, this automation will save you money every month!
💎 If you have batch jobs that run every night to post files to an SFTP storage account, and don't want SFTP to be available at other times, this video is for you!
#AzureCloud #CloudArchitect #AzureSFTP #SFTP #msp #managedservices #AzureAutomation
Video timecode notes:
Create a storage account - 0:24
Setup a storage account container - 2:39
Create a local user - 3:45
Test with WinSCP - 5:35
Create a new Automation Account (with managed identity) - 7:05
Assign the managed identity to the Storage Account - 8:40
Setup a runbook (using PowerShell scripting) - 10:05
Setup a recurring schedule for the runbook - 12:52
Test the runbook - 15:00
Keywords: Azure, cloud, Azure SFTP, Azure Automation Account, Azure runbook, troubleshoot SFTP in Azure, Azure optimization, Azure billing optimization
![](https://i.ytimg.com/vi/lU4HyZTI32c/maxresdefault.jpg)