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: articles/firewall/firewall-sftp.md
+94-54Lines changed: 94 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,36 @@
1
1
---
2
2
title: Access a storage account using SFTP over an Azure Firewall static public IP address
3
-
description: In this article, you use Azure PowerShell to deploy Azure Firewall to access a storage account container via SFTP.
4
-
services: firewall
3
+
description: Access a storage account container via SFTP by using Azure Firewall and Azure PowerShell.
5
4
author: duongau
5
+
ms.author: duau
6
6
ms.service: azure-firewall
7
7
ms.topic: how-to
8
-
ms.date: 04/27/2023
9
-
ms.author: harjsing
8
+
ms.date: 03/28/2026
10
9
ms.custom: devx-track-azurepowershell
11
10
# Customer intent: As a cloud administrator, I want to configure a secure SFTP connection to an Azure storage account via Azure Firewall, so that I can manage and transfer files securely while ensuring compliance with network security protocols.
12
11
---
13
12
14
-
# Access a storage account using SFTP over an Azure Firewall static public IP address
13
+
# Access a storage account by using SFTP over an Azure Firewall static public IP address
15
14
16
-
You can use Azure Firewall to access a storage account container via SFTP. Azure PowerShell is used to deploy a firewall in a virtual network and configured with DNAT rules to translate the SFTP traffic to the storage account container. The storage account container is configured with a private endpoint to allow access from the firewall. To connect to the container, you use the firewall public IP address and the storage account container name.
15
+
Use Azure Firewall to access a storage account container through SFTP. Use Azure PowerShell to deploy a firewall in a virtual network and configure it with DNAT rules to translate the SFTP traffic to the storage account container. Configure the storage account container with a private endpoint to allow access from the firewall. To connect to the container, use the firewall public IP address and the storage account container name.
17
16
18
-
:::image type="content" source="media/firewall-sftp/accessing-storage-using-sftp.png" alt-text="Diagram showing SFTP to firewall to access a storage account container." lightbox="media/firewall-sftp/accessing-storage-using-sftp.png":::
17
+
:::image type="content" source="media/firewall-sftp/accessing-storage-using-sftp.png" alt-text="Diagram that shows a customer connecting via SFTP to Azure Firewall, which routes traffic through a private endpoint to a storage account container." lightbox="media/firewall-sftp/accessing-storage-using-sftp.png":::
19
18
20
19
In this article, you:
21
20
22
-
- Deploy the network infrastructure
23
-
- Create a firewall policy with the appropriate DNAT rule
24
-
- Deploy the firewall
25
-
- Create a storage account and container
26
-
- Configure SFTP access to the storage account container
27
-
- Create a private endpoint for the storage account container
28
-
- Test the connection to the storage account container
21
+
- Deploy the network infrastructure.
22
+
- Create a firewall policy with the appropriate DNAT rule.
23
+
- Deploy the firewall.
24
+
- Create a storage account and container.
25
+
- Configure SFTP access to the storage account container.
26
+
- Create a private endpoint for the storage account container.
27
+
- Test the connection to the storage account container.
29
28
30
29
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn) before you begin.
This article requires the latest Azure PowerShell modules. Run `Get-Module -ListAvailable Az` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell). If you're running PowerShell locally, you also need to run `Login-AzAccount` to create a connection with Azure.
33
+
This article requires the latest Azure PowerShell modules. Run `Get-Module -ListAvailable Az` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
35
34
36
35
## Deploy the network infrastructure
37
36
@@ -50,19 +49,29 @@ $UserPrincipalName = "<your AD user principal name>"
50
49
$ContainerName = "<container-name>"
51
50
```
52
51
53
-
Create the network infrastructure. This includes a virtual network, subnets and a public IP address for the firewall.
52
+
Create the network infrastructure. This step includes creating a virtual network, subnets, and a public IP address for the firewall.
Now, test to ensure you can connect to the storage account container using SFTP. You can use any SFTP client to test the connection. In this example, we use sftp from a command prompt.
249
+
Now, test the connection to make sure you can connect to the storage account container by using SFTP. You can use any SFTP client to test the connection. In this example, use `sftp` from a command prompt.
207
250
208
-
For example, for a storage account named `teststorageaccount`, a container named `testcontainer`, a local account named `testuser`, and a firewall public IP address of `13.68.216.252`, you would use the following command:
251
+
For example, for a storage account named `teststorageaccount`, a container named `testcontainer`, a local account named `testuser`, and a firewall public IP address of `13.68.216.252`, use the following command:
You should now be connected to the storage account container using SFTP. You can use `put` and `get` commands to upload and download files. Use `ls` to list the files in the container, and `lls` to list the files in the local directory.
268
+
You're now connected to the storage account container by using SFTP. You can use `put` and `get` commands to upload and download files. Use `ls` to list the files in the container, and `lls` to list the files in the local directory.
227
269
228
270
## Clean up resources
229
271
230
-
When no longer needed, you can use the following command to remove the resource group, firewall, firewall policy, and all related resources.
272
+
When you no longer need the resources, use the following command to remove the resource group, firewall, firewall policy, and all related resources.
0 commit comments