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/storage/common/storage-network-security-ip-address-range.md
+36-21Lines changed: 36 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Grant Access to Azure Storage from IP Address Ranges
2
+
title: Configure Azure Storage to accept requests from IP address ranges
3
3
description: Configure the Azure Storage firewall to accept requests from IP address ranges.
4
4
services: storage
5
5
author: normesta
@@ -10,91 +10,106 @@ ms.date: 06/18/2025
10
10
ms.author: normesta
11
11
---
12
12
13
-
# Grant access to Azure Storage from IP address ranges
13
+
# Configure the Azure Storage firewall to accept requests from IP address ranges
14
14
15
-
Put something here.
15
+
You can deny all public access to your storage account, and then configure Azure network settings to accept requests from specific IP address ranges. To learn more, see [Permit access to IP address ranges](storage-network-security-public-access-configuration.md#grant-access-from-an-internet-ip-range).
16
16
17
-
### Managing IP network rules
18
-
19
-
You can manage IP network rules for storage accounts through the Azure portal, PowerShell, or the Azure CLI v2.
20
-
21
-
#### [Portal](#tab/azure-portal)
17
+
## [Portal](#tab/azure-portal)
22
18
23
19
1. Go to the storage account for which you want to manage IP network rules.
24
20
25
21
2. In the service menu, under **Security + networking**, select **Networking**.
26
22
27
-
3.Check that you've chosen to enable public network access from selected virtual networks and IP addresses.
23
+
3.To allow traffic from IP address ranges, make sure that **Enabled from selected virtual networks and IP addresses** is selected.
28
24
29
25
4. To grant access to an internet IP range, enter the IP address or address range (in CIDR format) under **Firewall** > **Address Range**.
30
26
31
27
5. To remove an IP network rule, select the delete icon (:::image type="icon" source="media/storage-network-security/delete-icon.png":::) next to the address range.
32
28
33
29
6. Select **Save** to apply your changes.
34
30
35
-
####[PowerShell](#tab/azure-powershell)
31
+
## [PowerShell](#tab/azure-powershell)
36
32
37
33
1. Install [Azure PowerShell](/powershell/azure/install-azure-powershell) and [sign in](/powershell/azure/authenticate-azureps).
38
34
39
-
2. List IP network rules:
35
+
2. To allow traffic to IP address ranges, use the `Update-AzStorageAccountNetworkRuleSet` command and set the `-DefaultAction` parameter to `Deny`:
> Network rules have no effect unless you set the `-DefaultAction` parameter to `Deny`. However, changing this setting can affect your application's ability to connect to Azure Storage. Be sure to grant access to any allowed networks or set up access through a private endpoint before you change this setting.
1. Install the [Azure CLI](/cli/azure/install-azure-cli) and [sign in](/cli/azure/authenticate-azure-cli).
72
77
73
-
1. List IP network rules:
78
+
79
+
2. To allow traffic from IP address ranges, use the `az storage account update` command and set the `--default-action` parameter to `Deny`:
80
+
81
+
```azurecli
82
+
az storage account update --resource-group "myresourcegroup" --name "mystorageaccount" --default-action Deny
83
+
```
84
+
85
+
> [!IMPORTANT]
86
+
> Network rules have no effect unless you set the `--default-action` parameter to `Deny`. However, changing this setting can affect your application's ability to connect to Azure Storage. Be sure to grant access to any allowed networks or set up access through a private endpoint before you change this setting.
87
+
88
+
3. List IP network rules:
74
89
75
90
```azurecli
76
91
az storage account network-rule list --resource-group "myresourcegroup" --account-name "mystorageaccount" --query ipRules
77
92
```
78
93
79
-
1. Add a network rule for an individual IP address:
94
+
4. Add a network rule for an individual IP address:
0 commit comments