
Azure Blob SFTP is a secure way to transfer files to and from the cloud. It allows you to use the FileZilla client to connect to your Azure Blob Storage account.
To get started, you'll need to create a storage account and enable SFTP. This can be done in the Azure portal.
You can then download and install the FileZilla client, which supports SFTP connections.
On a similar theme: Enable Sftp Azure Storage Account
Setting Up Azure Storage for SFTP
To set up Azure Storage for SFTP, you'll need a standard general-purpose v2 or premium block blob storage account. You can also enable SFTP as you create the account.
For an existing storage account, make sure it has the hierarchical namespace feature enabled. This can be done by upgrading to Azure Blob Storage with Azure Data Lake Storage Gen2 capabilities.
The account redundancy option of the storage account must be set to either locally-redundant storage (LRS) or zone-redundant storage (ZRS), as global-redundant storage (GRS) is not supported.
If you're connecting from an on-premises network, ensure your client allows outgoing communication through port 22, as SFTP uses that port.
Related reading: Storage Account Azure
Connecting to Azure Blob SFTP
Connecting to Azure Blob SFTP is relatively easy. You'll need to use the SFTP username in the format Storage_account_name.container_name.username.
To connect, you'll need to specify the URL and username, as shown in the example. Make sure to use the correct format to avoid any issues.
You can use the SFTP username to connect to the Azure Blob Storage account from an on-premises network, as long as your client allows outgoing communication through port 22. This is because SFTP uses port 22.
You can test connectivity to the SFTP Azure Storage account using various operating systems, including Windows, Linux, and OSX. The same concepts apply across different operating systems.
To test connectivity from Windows, you'll need to have a copy of the Connection String and user password from the SFTP user account created earlier. You can use the command prompt to test connectivity, as shown in the example.
Here are the steps to test connectivity via SFTP from Windows using the command prompt:
- Make sure you have a copy of the Connection String and user password from the SFTP user account created earlier.
- Open Command Prompt.
- Type in `sftp CONNECTIONSTRING`, example below and press Enter:
- If you get a prompt to verify the authenticity of the host matches (i.e. the name/URL of the storage account matches) and type in: Yes, to add the storage account to your known host's list
- Press Enter and paste in the copy of the Password that was generated for you earlier.
- You should be connected to the Azure Storage account via SFTP!
Once you're connected, you can use the available commands to run, such as uploading files, as shown in the example.
Testing Azure Blob SFTP
Testing Azure Blob SFTP is a crucial step in ensuring seamless data transfer between your on-premises systems and Azure Storage.
You can test connectivity to an Azure Storage account using SFTP on various operating systems, including Windows 11, Linux, and OSX.
To start, you'll need to use an SFTP client, such as FileZilla, to connect to your Azure Storage account.
This process is applicable across different operating systems, as mentioned earlier.
Make sure your Azure Storage account is set up with the necessary permissions and configurations for SFTP connectivity.
The same concepts and steps apply to testing Azure Blob SFTP, regardless of the operating system you're using.
Known Supported Clients
Connecting to your Azure Blob SFTP is straightforward. You can easily connect to your SFTP container after adding a user successfully.
The SFTP username is always used in the following format: Storage_account_name.container_name.username. This is a crucial piece of information to get right.
To connect, you'll need to specify the URL and username correctly. The username is a combination of the storage account name, container name, and actual username.
Explore further: Azure Kubernetes Service vs Azure Container Apps
Frequently Asked Questions
How much does Azure Blob storage SFTP cost?
Azure Blob storage SFTP costs a flat rate of $0.30 per hour, regardless of the number of containers or users. This translates to a monthly cost of $220, with no additional fees based on usage or container count.
What protocol does Azure blob storage use?
Azure Blob Storage supports various protocols, including REST, HDFS, NFS, and SFTP, for accessing and managing data. You can choose the protocol that best fits your needs and workflow.
Sources
- https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support
- https://www.bdrsuite.com/blog/how-to-enable-sftp-support-for-azure-blob-storage/
- https://stackoverflow.com/questions/78545508/copy-file-from-azure-blob-storage-to-sftp-server
- https://pro2col.com/blog/microsoft-announces-sftp-support-for-azure-blob-storage
- https://luke.geek.nz/azure/sftp-in-microsoft-azure-using-azure-blob-storage/
Featured Images: pexels.com