Azure Python SDK - SFTP Blob Storage
Steps:
- Provision a Azure Storage account with Terraform
- Via Azure CLI commands:
- Enable SFTP
- create a container
- create a local user with rwldc permissions for the containr
- using Python sftp client library
paramiko
do a ssh file transfer to the container - Via Azure CLI:
- delete local user
- delete container
- disable SFTP
- https://learn.microsoft.com/en-us/azure/developer/terraform/get-started-cloud-shell-bash?tabs=bash
- https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#sftp_enabled
- https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support
- https://learn.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.containerclient?view=azure-python
- https://azure.github.io/azure-sdk/releases/latest/index.html#python
- https://learn.microsoft.com/en-us/cli/azure/storage?view=azure-cli-latest
- https://dev.to/manukanne/tutorial-create-an-azure-blob-storage-with-sftp-integration-cd6
- https://www.jorgebernhardt.com/azure-storage-blobs-enable-sftp-support/