Explore practical guides and tools for Microsoft 365, Azure, and PowerShell. Enhance your cloud security and admin skills with expert insights and automation tips.
Explore practical guides and tools for Microsoft 365, Azure, and PowerShell. Enhance your cloud security and admin skills with expert insights and automation tips.
3 ways to migrate data from local machine to Azure Blob Storage Account
In today’s digital world, effective data management is crucial for businesses of all sizes. Migrating data to the cloud, and in particular to Azure Blob Storage, offers many advantages, including scalability, security and accessibility. However, choosing the most suitable migration method can be complex.
In this article, we’ll explore three proven methods for transferring your data from a local machine to an Azure Blob Storage account. Whether you prefer a user-friendly graphical interface, a powerful command line or a secure transfer method, we’ve got you covered.
Find out how to use :
Azure Storage Explorer
AzCopy
SFTP
to simplify and secure your data migrations in your organization. 🌐💼
1 – Azure Storage Explorer (GUI Method)
What is it
A standalone application with graphical interface for managing Azure Storage resources
Available for Windows, macOS, and Linux platforms
Key Features
Drag-and-drop file operations
Multiple storage account management
Built-in file preview capabilities
Integration with Azure Cosmos DB and Data Lake Storage
Best Use Cases
Small to medium file transfers
Visual exploration of storage contents
One-time migrations
When working with non-technical users
How to :
Access to your storage Account
Select “Containers”
Select your Container
Select upload then browse for your files
select Upload to upload files
As you can see files is uploaded successfully.
2 – AzCopy (Command Line) :
What is it
Command-line utility optimized for large-scale data transfers
Supports copying between file systems and storage accounts
Here you can see execution result : Transfer completed successfully with no errors
lets check our folder in Azure storage Account : As you can see here is the folder “Tools”
3 – SFTP (Secure File Transfer Protocol) 🔒:
What is it
SFTP is a secure method of transferring files between a client and a server on a network.
Native SFTP protocol support for Azure Blob Storage
Allows secure file transfers using standard SFTP clients
Setup Requirements
Standard general-purpose v2 storage account
SSH (Secure Shell) client is required
SFTP enabled on the storage account
Local user credentials configured
Port 22 accessibility
Best Use Cases
Legacy system integration
Compliance requirements
Third-party system integration
When standard SFTP protocol is required
Security Features
SSH key authentication
Password protection
Network access rules
Encryption in transit
Reliability : Allows resumption of interrupted transfers.
How to :
A – Check Open SSH Client in your Windows machine
if you are using Windows 11, you can use OpenSSH Client, it should be all ready installed (if not just click on install)
Open Windows 11 setting then type “Features“
Select “Optional Features“
Select OpenSSH Client (it’s installed in my case)
B – Create Firewall rule to enable Outbound Port 22 :
Select Outbound Rule, then select “New Rule“.
C – Enable SFTP on Azure Storage container :
Prerequisites 📋
Storage Account should be Standard general-purpose v2 or Premium block blob.
Hierarchical namespace must be enabled when Storage Account is created.
To enable SFTP in an Azure storage account, follow these steps in order:
Click on “Settings” in the left-hand navigation menu of the storage account
Select the “SFTP” option in the settings submenu
Click on the “Enable SFTP” button in the top toolbar to activate SFTP functionality.
Once you’ve completed these steps, you’ll be able to add local users and configure SFTP access for your storage account.
Click on the “Add local user” button
Enter the desired user name (example: “sfptransfer”)
Select the authentication method (here “SSH Password” is checked)
Click on “Next” to continue configuration
This configuration creates a local user who can connect via SFTP to the Azure storage account.
Select Container, Permissions and directory
Click “Add“
Copy SSH Password that will be displayed in notepad
copy username (Highlited)
open commandline and type the following command :
sftp <username>
Then Enter SSH Password
Here’s commands to copy file or directory :
# To copy file
put <Full File Path>
# To copy Directory
put -r <local Directory Path>
Let’s copy C:\temp1 directory
As you can see directory is successfully copied.
Let’s check azure blob storage :
As you can see the entire folder is copied successfully.
4 – Choosing the Right Method
Choose based on your specific needs:
Storage Explorer for visual management and occasional transfers
AzCopy for bulk transfers and automation
SFTP for secure, standardized file transfer requirements
Thanks
Aymen EL JAZIRI (Microsoft MVP)
Hi, I’m Aymen El Jaziri , a passionate System Administrator and Microsoft MVP, with years of hands-on experience in managing and securing modern IT infrastructures.
This blog is where I share technical guides, automation scripts, product reviews, and real-world solutions that help IT professionals simplify their day-to-day work and stay ahead in a fast-evolving cloud ecosystem.
Whether you’re here to troubleshoot an issue, improve your automation game, or learn new best practices , welcome in my blog !
Let’s build a stronger, smarter IT community together.
Feel free to connect with me on LinkedIn for more content, discussions, or collaboration opportunities.