On-demand SFTP Server using an existing storage account
This template demonstrates an on-demand SFTP server using an Azure Container Instance (ACI). This version requires an existing Storage Account and File Share to exist in the same region as the ACI to be created. This File Share is then mounted into the main ACI to provide persistent storage after the container is terminated.
Tags: Azure Container Instance, az-cli, sftp, Microsoft.Resources/deployments, Microsoft.ContainerInstance/containerGroups, Public, Microsoft.ManagedIdentity/userAssignedIdentities, Microsoft.Authorization/roleAssignments, Microsoft.Storage/storageAccounts, Microsoft.Resources/deploymentScripts, userAssigned
Click the "Deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repository. Ensure that a Storage Account and a file share have previously been created, as these are required parameters.
Once deployed, connect to the public IP of the SFTP ACI and upload files; these files should be placed into the File Share. Once transfers are complete, stop the ACI and the files will remain accessible. You can delete/recreate the ACI and mount the same file share to copy more files.
Azure Container Instance is available in selected locations. Please use one of the available location for Azure Container Instance resource. The container image used by this template is hosted on Docker Hub. It is not affiliated with Microsoft in any way, and usage is at your own risk.