Skip to content

Commit e8e7d42

Browse files
committed
Making article more clear
1 parent 61a829e commit e8e7d42

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

articles/storage/common/storage-network-security-set-default-access.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
---
2-
title: Deny Access to Public Endpoints of an Azure Storage account
3-
description: Put description here.
2+
title: 'Set the default public network access rule: Azure Storage'
3+
description: Specify whether to allow networks, disable networks or to permit only specific networks to make requests to the storage accounts public endpoint.
44
services: storage
55
author: normesta
66
ms.service: azure-storage
77
ms.subservice: storage-common-concepts
88
ms.topic: how-to
99
ms.date: 06/18/2025
1010
ms.author: normesta
11-
1211
---
13-
# Deny access to public endpoints of an Azure Storage account
14-
15-
Put something here.
1612

17-
## Change the default network access rule
13+
# Set the default public network access rule of an Azure Storage account
1814

1915
By default, storage accounts accept connections from clients on any network. You can limit access to selected networks *or* prevent traffic from all networks and permit access only through a [private endpoint](storage-private-endpoints.md).
2016

21-
You must set the default rule to **deny**, or network rules have no effect. 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.
22-
23-
[!INCLUDE [updated-for-az](~/reusable-content/ce-skilling/azure/includes/updated-for-az.md)]
17+
## Set the default public network access rule
2418

2519
### [Portal](#tab/azure-portal)
2620

@@ -30,9 +24,11 @@ You must set the default rule to **deny**, or network rules have no effect. Howe
3024

3125
3. Choose what network access is enabled through the storage account's public endpoint:
3226

33-
- Select either **Enabled from all networks** or **Enabled from selected virtual networks and IP addresses**. If you select the second option, you'll be prompted to add virtual networks and IP address ranges.
27+
- To allow traffic from all networks, select **Enabled from all networks**.
28+
29+
- To allow traffic only from specific virtual networks, IP address ranges, or specific Azure resources, select **Enabled from selected virtual networks and IP addresses**. You'll be prompted to add virtual networks, IP address ranges or resource instances.
3430

35-
- To restrict inbound access while allowing outbound access, select **Disabled**.
31+
- To block traffic from all networks,, select **Disabled**.
3632

3733
4. Select **Save** to apply your changes.
3834

@@ -56,6 +52,9 @@ You must set the default rule to **deny**, or network rules have no effect. Howe
5652
Update-AzStorageAccountNetworkRuleSet -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -DefaultAction Deny
5753
```
5854
55+
> [!IMPORTANT]
56+
> 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.
57+
5958
- To block traffic from all networks, use the `Set-AzStorageAccount` command and set the `-PublicNetworkAccess` parameter to `Disabled`. Traffic will be allowed only through a [private endpoint](storage-private-endpoints.md). You'll have to create that private endpoint.
6059
6160
```powershell
@@ -64,6 +63,8 @@ You must set the default rule to **deny**, or network rules have no effect. Howe
6463
6564
### [Azure CLI](#tab/azure-cli)
6665
66+
[!INCLUDE [updated-for-az](~/reusable-content/ce-skilling/azure/includes/updated-for-az.md)]
67+
6768
1. Install the [Azure CLI](/cli/azure/install-azure-cli) and [sign in](/cli/azure/authenticate-azure-cli).
6869
6970
2. Choose which type of public network access you want to allow:
@@ -80,6 +81,9 @@ You must set the default rule to **deny**, or network rules have no effect. Howe
8081
az storage account update --resource-group "myresourcegroup" --name "mystorageaccount" --default-action Deny
8182
```
8283
84+
> [!IMPORTANT]
85+
> 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.
86+
8387
- To block traffic from all networks, use the `az storage account update` command and set the `--public-network-access` parameter to `Disabled`. Traffic will be allowed only through a [private endpoint](storage-private-endpoints.md). You'll have to create that private endpoint.
8488
8589
```azurecli

0 commit comments

Comments
 (0)