Create Storage Account with SFTP enabled

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Visualize

This template creates an Azure Storage account and a blob container that can be accessed using SFTP protocol. Access can be password or public-key based.

This feature is currently in Public Preview. To enable the feature on your subscription, you will need execute either of the following commands:

  • Azure CLI
# Check if the SFTP feature is registered first
az feature show --namespace Microsoft.Storage --name AllowSFTP

# Register the SFTP feature on your subscription
az feature register --namespace Microsoft.Storage --name AllowSFTP
  • PowerShell
# Check if the SFTP feature is registered first
Get-AzProviderFeature -FeatureName "AllowSFTP" -ProviderNamespace "Microsoft.Storage"

# Register the SFTP feature on your subscription
Register-AzProviderFeature -FeatureName "AllowSFTP" -ProviderNamespace "Microsoft.Storage"

If using password authentication, you will need to access to the storage account in Azure Portal to securely generate a password for the user.

If you are new to Azure Storage account, see:

If you are new to the template development, see:

Tags: Azure Storage account, Resource Manager, Resource Manager templates, ARM templates, SFTP

Tags: Microsoft.Storage/storageAccounts, Microsoft.Storage/storageAccounts/blobServices/containers, Microsoft.Storage/storageAccounts/localUsers