Skip to main content
Azure bills SFTP support on a storage account for every hour it is enabled, whether or not anyone connects. SFTP is often turned on for a one-off transfer and left on. nOps finds storage accounts paying for SFTP that had no storage activity at all for 30 days, and estimates the saving from turning SFTP off.

Why it matters

The hourly charge adds up to a noticeable monthly cost per account, and it is easy to forget once the transfer is done.

How nOps finds it

nOps reads your Azure storage billing. An account is flagged when SFTP has been billed since before the last 30 complete days and the account had no read, write, list, retrieval or data transfer charges at all in that time. Any SFTP session reads or writes data, so no activity means no SFTP use. The saving is the SFTP charge over the last 7 days, net of discounts and scaled to a month, and must be at least $2 a month.

Before you start

Permission to change the storage account (for example Storage Account Contributor).

How to implement

  1. Check with the account owner that no partner or job still transfers files over SFTP.
  2. In the Azure portal, open the storage account, go to SFTP and choose Disable SFTP, or run az storage account update --resource-group MY_RG --name MYACCOUNT --enable-sftp false.
  3. Update Terraform, Bicep or ARM templates so SFTP is not turned back on.

Risks and considerations

  • Clients that try to connect over SFTP fail until you turn it back on.
  • Local SFTP users and their settings are kept, so you can turn SFTP back on at any time.