Az.Sftp
0.2.0
Microsoft Azure PowerShell - SFTP module for Azure Storage. Provides cmdlets to generate SSH certificates and establish secure SFTP connections to Azure Storage accounts with hierarchical namespace enabled. For more information on Azure Storage SFTP support, please visit: https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
Microsoft Corporation. All rights reserved.
Package Details
Author(s)
- Microsoft Corporation
Tags
Azure ResourceManager ARM Storage SFTP FileTransfer
Cmdlets
Connect-AzSftp New-AzSftpCertificate
PSEditions
Dependencies
-
- Az.Accounts (>= 5.4.0)
Release Notes
* Added confirmation prompt when an SSH key pair already exists at the target location
- Both 'New-AzSftpCertificate' and 'Connect-AzSftp' now detect existing key pairs before generating new ones
- Users are prompted to choose whether to overwrite existing keys or reuse them
- Added '-Force' parameter to bypass the confirmation prompt
* Improved verbose and debug logging across all cmdlets
- Added timing information for key pair generation, certificate requests, and SFTP session duration
- Enhanced SSH client validation logging with resolved executable paths
- Added structured log prefixes (KeyPair, CertGen, SSH, SFTP, Auth, Cleanup) for easier filtering
- Improved credential cleanup logging with operation-level status messages
* Fixed command injection vulnerability in file permission handling [Security]
- Replaced 'powershell.exe' and 'icacls.exe' subprocess calls with direct .NET ACL APIs on Windows
- Replaced 'chmod' subprocess call with native P/Invoke on Unix
- Canonicalized file paths in SSH key generation methods to prevent path traversal
FileList
- Az.Sftp.nuspec
- Microsoft.Azure.PowerShell.Cmdlets.Sftp.dll-Help.xml
- Az.Sftp.psd1
- Az.Sftp.psm1
- Microsoft.Azure.PowerShell.Cmdlets.Sftp.dll
- .signature.p7s
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.0 (current version) | 33 | 5/5/2026 |
| 0.1.2 | 175 | 4/7/2026 |
| 0.1.1 | 436 | 3/3/2026 |
| 0.1.0 | 1,357 | 10/14/2025 |