Is it possible to change the port 22 of an SFTP storage account?

Gerald Ortiz Candela 40 Reputation points
2025-03-13T15:48:59.15+00:00

I have created an SFTP storage account, and I would like to know if it is possible to change the default port 22 used for connection.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,414 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinod Kumar Reddy Chilupuri 3,035 Reputation points Microsoft External Staff
    2025-03-13T16:04:11.1133333+00:00

    Hi Gerald Ortiz Candela,

    It is not possible to change the default port 22 used for SFTP connections in an Azure Blob Storage account. SFTP is a platform-level service, and port 22 will remain open even if the SFTP account option is disabled. SFTP connections in Azure Blob Storage are designed to use port 22 for communication.
    Azure's SFTP service operates on a multi-tenant platform. Allowing each customer to customize the port would complicate the service architecture and could lead to security and management challenges.
    To manage costs effectively, it is advisable to disable the SFTP service when it is not in use. This helps prevent unnecessary charges associated with the service.

    https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support

    Hope the above suggestion helps. Please let us know if you have any further queries. Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 

    User's image

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. TP 109.4K Reputation points
    2025-03-13T16:04:56.1066667+00:00

    Hi Gerald,

    Unfortunately there is no documented ability to change the default port used for Azure Storage SFTP. The SFTP service is multi-tenant platform service (as opposed to dedicated) so you can see how allowing each customer to have custom port would be difficult.

    As a reminder, to reduce cost it is best to disable SFTP when you are not actively using it. The reason is, you are charged every hour that SFTP is enabled, whether you use it or not.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.