You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Sftp/Sftp/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
This module provides PowerShell cmdlets for securely connecting to Azure Storage accounts using SFTP (SSH File Transfer Protocol).
3
3
4
4
## Overview
5
-
Az.Sftp enables you to establish secure SFTP connections to Azure Storage accounts with hierarchical namespace enabled. The module supports multiple authentication modes including automatic Azure AD certificate generation.
5
+
Az.Sftp enables you to establish secure SFTP connections to Azure Storage accounts with hierarchical namespace enabled. The module supports multiple authentication modes including automatic Microsoft Entra certificate generation.
6
6
7
7
## Requirements
8
8
- Azure Storage account with SFTP enabled
@@ -20,7 +20,7 @@ Install-Module -Name Az.Sftp
20
20
# Connect to Azure
21
21
Connect-AzAccount
22
22
23
-
# Connect to storage account using Azure AD authentication
23
+
# Connect to storage account using Microsoft Entra authentication
Copy file name to clipboardExpand all lines: src/Sftp/Sftp/SftpCommands/ConnectAzSftpCommand.cs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ public class ConnectAzSftpCommand : SftpBaseCmdlet
52
52
publicint?Port{get;set;}
53
53
54
54
[Parameter(Mandatory=false,ParameterSetName=DefaultParameterSet,HelpMessage="Path to SSH certificate file for authentication. If not provided, a certificate will be generated automatically.")]
55
-
[Parameter(Mandatory=true,ParameterSetName=CertificateAuthParameterSet,HelpMessage="Path to SSH certificate file for authentication. Must be generated with New-AzSftpCertificate or compatible Azure AD certificate.")]
55
+
[Parameter(Mandatory=true,ParameterSetName=CertificateAuthParameterSet,HelpMessage="Path to SSH certificate file for authentication. Must be generated with New-AzSftpCertificate or compatible Microsoft Entra certificate.")]
56
56
[ValidateNotNullOrEmpty]
57
57
publicstringCertificateFile{get;set;}
58
58
@@ -67,7 +67,7 @@ public class ConnectAzSftpCommand : SftpBaseCmdlet
67
67
[ValidateNotNullOrEmpty]
68
68
publicstringPublicKeyFile{get;set;}
69
69
70
-
[Parameter(Mandatory=true,ParameterSetName=LocalUserAuthParameterSet,HelpMessage="Username for a local user configured on the storage account. When specified, uses local user authentication instead of Azure AD.")]
70
+
[Parameter(Mandatory=true,ParameterSetName=LocalUserAuthParameterSet,HelpMessage="Username for a local user configured on the storage account. When specified, uses local user authentication instead of Microsoft Entra.")]
@@ -43,12 +43,12 @@ public class NewAzSftpCertificateCommand : SftpBaseCmdlet
43
43
[Alias("OutputFile","o")]
44
44
publicstringCertificatePath{get;set;}
45
45
46
-
[Parameter(Mandatory=true,ParameterSetName=FromPublicKeyParameterSet,HelpMessage="Path to existing SSH public key file for which to generate a certificate using Azure AD.")]
46
+
[Parameter(Mandatory=true,ParameterSetName=FromPublicKeyParameterSet,HelpMessage="Path to existing SSH public key file for which to generate a certificate using Microsoft Entra.")]
47
47
[ValidateNotNullOrEmpty]
48
48
[Alias("p")]
49
49
publicstringPublicKeyFile{get;set;}
50
50
51
-
[Parameter(Mandatory=true,ParameterSetName=FromPrivateKeyParameterSet,HelpMessage="Path to existing SSH private key file. The corresponding public key will be used to generate a certificate using Azure AD.")]
51
+
[Parameter(Mandatory=true,ParameterSetName=FromPrivateKeyParameterSet,HelpMessage="Path to existing SSH private key file. The corresponding public key will be used to generate a certificate using Microsoft Entra.")]
52
52
[Parameter(Mandatory=false,ParameterSetName=DefaultParameterSet,HelpMessage="Path to existing SSH private key file. If provided, uses the corresponding public key for certificate generation.")]
53
53
[Parameter(Mandatory=false,ParameterSetName=LocalUserParameterSet,HelpMessage="Path to existing SSH private key file for local user certificate generation.")]
Download Help Link: https://learn.microsoft.com/powershell/module/az.sftp
5
+
Help Version: 0.0.1.0
6
+
Locale: en-US
7
+
---
8
+
9
+
# Az.Sftp Module
10
+
## Description
11
+
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
12
+
13
+
## Az.Sftp Cmdlets
14
+
### [Connect-AzSftp](Connect-AzSftp.md)
15
+
Starts an interactive SFTP session to an Azure Storage Account.
16
+
Users can login using Microsoft Entra accounts, or local user accounts via standard SSH authentication. Use Microsoft Entra account login for the best security and convenience.
Start interactive SFTP session to an Azure Storage Account.
45
45
Users can login using Microsoft Entra issued certificates or using local user credentials. We recommend login using Microsoft Entra issued certificates when possible.
46
-
The target storage account must have SFTP enabled and hierarchical namespace (HNS) enabled. For Azure AD authentication, your Azure AD identity must have appropriate RBAC permissions such as Storage Blob Data Contributor or Storage Blob Data Owner.
46
+
The target storage account must have SFTP enabled and hierarchical namespace (HNS) enabled. For Microsoft Entra authentication, your Microsoft Entra identity must have appropriate RBAC permissions such as Storage Blob Data Contributor or Storage Blob Data Owner.
The New-AzSftpCertificate cmdlet generates SSH certificates for SFTP authentication using your current Azure AD credentials. This cmdlet provides the same authentication methods and parameter sets as the Az.Ssh module, ensuring consistency across Azure PowerShell modules.
40
+
The New-AzSftpCertificate cmdlet generates SSH certificates for SFTP authentication using your current Microsoft Entra credentials. This cmdlet provides the same authentication methods and parameter sets as the Az.Ssh module, ensuring consistency across Azure PowerShell modules.
41
41
42
42
The cmdlet supports four authentication modes that align with the SSH module:
43
43
44
-
**Default Mode (Azure AD Authentication)**: When no specific key files are provided, the cmdlet automatically generates a new SSH key pair and creates a certificate signed by Azure AD's trusted CA. This is the simplest approach for getting started with SFTP authentication.
44
+
**Default Mode (Microsoft Entra Authentication)**: When no specific key files are provided, the cmdlet automatically generates a new SSH key pair and creates a certificate signed by Microsoft Entra's trusted CA. This is the simplest approach for getting started with SFTP authentication.
45
45
46
-
**FromPublicKey Mode**: When a public key file is provided, the cmdlet generates a certificate for that specific key using Azure AD credentials. This is useful when you already have SSH public keys and want to use them for Azure Storage SFTP access.
46
+
**FromPublicKey Mode**: When a public key file is provided, the cmdlet generates a certificate for that specific key using Microsoft Entra credentials. This is useful when you already have SSH public keys and want to use them for Azure Storage SFTP access.
47
47
48
-
**FromPrivateKey Mode**: When a private key file is provided, the cmdlet generates the corresponding public key and creates a certificate using Azure AD credentials. This is helpful when you have existing private keys and want to create certificates for them.
48
+
**FromPrivateKey Mode**: When a private key file is provided, the cmdlet generates the corresponding public key and creates a certificate using Microsoft Entra credentials. This is helpful when you have existing private keys and want to create certificates for them.
49
49
50
50
**LocalUser Mode**: When a local user is specified, the cmdlet generates a certificate suitable for local user authentication on storage accounts. This can be combined with existing private keys or generate new ones, matching the SSH module's local user certificate capabilities.
51
51
52
-
The generated certificates are typically valid for 1 hour and can be used with any SFTP client that supports SSH certificate authentication. The certificates are signed by Azure AD's trusted CA and will be accepted by Azure Storage accounts where your Azure AD identity has appropriate permissions.
52
+
The generated certificates are typically valid for 1 hour and can be used with any SFTP client that supports SSH certificate authentication. The certificates are signed by Microsoft Entra's trusted CA and will be accepted by Azure Storage accounts where your Microsoft Entra identity has appropriate permissions.
53
53
54
54
You must be signed in to Azure with an account that has appropriate RBAC permissions (such as Storage Blob Data Contributor or Storage Blob Data Owner) on the target storage accounts.
55
55
@@ -60,7 +60,7 @@ You must be signed in to Azure with an account that has appropriate RBAC permiss
60
60
New-AzSftpCertificate
61
61
```
62
62
63
-
This command generates a new SSH key pair and creates a certificate signed by Azure AD. The key pair and certificate are saved in the system temp directory with auto-generated filenames. This is the simplest way to get started with SFTP authentication.
63
+
This command generates a new SSH key pair and creates a certificate signed by Microsoft Entra. The key pair and certificate are saved in the system temp directory with auto-generated filenames. This is the simplest way to get started with SFTP authentication.
64
64
65
65
### Example 2: Generate certificate with custom path
66
66
```powershell
@@ -74,7 +74,7 @@ This command generates a new SSH key pair and creates a certificate, saving the
This command generates a certificate from an existing SSH private key. The cmdlet will automatically derive the public key from the private key and create a certificate signed by Azure AD. This is useful when you have existing private keys and want to create certificates for them.
77
+
This command generates a certificate from an existing SSH private key. The cmdlet will automatically derive the public key from the private key and create a certificate signed by Microsoft Entra. This is useful when you have existing private keys and want to create certificates for them.
78
78
79
79
### Example 4: Generate certificate from existing public key
0 commit comments