Skip to content

Commit f1a315a

Browse files
Merge pull request #227253 from halkazwini/docs-editor/manage-network-security-group-1676354424
fix screenshot link
2 parents 0f28f82 + c943240 commit f1a315a

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

articles/virtual-network/manage-network-security-group.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: asudbring
77
ms.service: virtual-network
88
ms.topic: how-to
99
ms.workload: infrastructure-services
10-
ms.date: 11/16/2022
10+
ms.date: 02/14/2023
1111
ms.author: allensu
1212
ms.custom: template-how-to, engagement-fy23
1313
---
@@ -80,7 +80,6 @@ az network nsg create --resource-group MyResourceGroup --name myNSG
8080
```
8181

8282
---
83-
8483
### View all network security groups
8584

8685
# [**Portal**](#tab/network-security-group-portal)
@@ -106,7 +105,6 @@ az network nsg list --out table
106105
```
107106

108107
---
109-
110108
### View details of a network security group
111109

112110
# [**Portal**](#tab/network-security-group-portal)
@@ -162,7 +160,6 @@ To learn more about the common Azure settings listed, see the following articles
162160
- [Locks](../azure-resource-manager/management/lock-resources.md)
163161

164162
---
165-
166163
### Change a network security group
167164

168165
The most common changes to a network security group are:
@@ -215,7 +212,6 @@ az network vnet subnet update --resource-group myResourceGroup --vnet-name myVNe
215212
```
216213

217214
---
218-
219215
### Delete a network security group
220216

221217
If a network security group is associated to any subnets or network interfaces, it can't be deleted. Dissociate a network security group from all subnets and network interfaces before attempting to delete it.
@@ -247,7 +243,6 @@ az network nsg delete --resource-group myResourceGroup --name myNSG
247243
```
248244

249245
---
250-
251246
## Work with security rules
252247

253248
A network security group contains zero or more security rules. You can [create](#create-a-security-rule), [view all](#view-all-security-rules), [view details of](#view-details-of-a-security-rule), [change](#change-a-security-rule), and [delete](#delete-a-security-rule) a security rule.
@@ -314,7 +309,6 @@ az network nsg rule create --resource-group myResourceGroup --nsg-name myNSG --n
314309
```
315310

316311
---
317-
318312
### View all security rules
319313

320314
A network security group contains zero or more rules. To learn more about the information listed when viewing rules, see [Security rules](./network-security-groups-overview.md#security-rules).
@@ -351,7 +345,6 @@ az network nsg rule list --resource-group myResourceGroup --nsg-name myNSG
351345
```
352346

353347
---
354-
355348
### View details of a security rule
356349

357350
# [**Portal**](#tab/network-security-group-portal)
@@ -395,7 +388,6 @@ az network nsg rule show --resource-group myResourceGroup --nsg-name myNSG --nam
395388
> This procedure only applies to a custom security rule. It doesn't work if you choose a default security rule.
396389
397390
---
398-
399391
### Change a security rule
400392

401393
# [**Portal**](#tab/network-security-group-portal)
@@ -445,7 +437,6 @@ az network nsg rule update --resource-group myResourceGroup --nsg-name myNSG --n
445437
> This procedure only applies to a custom security rule. You aren't allowed to change a default security rule.
446438
447439
---
448-
449440
### Delete a security rule
450441

451442
# [**Portal**](#tab/network-security-group-portal)
@@ -493,7 +484,6 @@ az network nsg rule delete --resource-group myResourceGroup --nsg-name myNSG --n
493484
> This procedure only applies to a custom security rule. You aren't allowed to change a default security rule.
494485
495486
---
496-
497487
## Work with application security groups
498488

499489
An application security group contains zero or more network interfaces. To learn more, see [application security groups](./network-security-groups-overview.md#application-security-groups). All network interfaces in an application security group must exist in the same virtual network. To learn how to add a network interface to an application security group, see [Add a network interface to an application security group](virtual-network-network-interface.md#add-or-remove-from-application-security-groups).
@@ -517,7 +507,7 @@ An application security group contains zero or more network interfaces. To learn
517507
| Name | Enter a name for the application security group you're creating. |
518508
| Region | Select the region you want to create the application security group in. |
519509

520-
:::image type="content" source="./media/manage-network-security-group/create-network-security-group.png" alt-text="Screenshot of create an application security group in Azure portal.":::
510+
:::image type="content" source="./media/manage-network-security-group/create-application-security-group.png" alt-text="Screenshot of create an application security group in Azure portal.":::
521511

522512
5. Select **Review + create**.
523513

@@ -540,7 +530,6 @@ az network asg create --resource-group myResourceGroup --name myASG --location e
540530
```
541531

542532
---
543-
544533
### View all application security groups
545534

546535
# [**Portal**](#tab/network-security-group-portal)
@@ -566,7 +555,6 @@ az network asg list --resource-group myResourceGroup --out table
566555
```
567556

568557
---
569-
570558
### View details of a specific application security group
571559

572560
# [**Portal**](#tab/network-security-group-portal)
@@ -592,7 +580,6 @@ az network asg show --resource-group myResourceGroup --name myASG
592580
```
593581

594582
---
595-
596583
### Change an application security group
597584

598585
# [**Portal**](#tab/network-security-group-portal)
@@ -629,7 +616,6 @@ az network asg update --resource-group myResourceGroup --name myASG --tags Dept=
629616
> You can't change the resource group, subscription or location of an application security group using the Azure CLI.
630617
631618
---
632-
633619
### Delete an application security group
634620

635621
You can't delete an application security group if it contains any network interfaces. To remove all network interfaces from the application security group, either change the network interface settings or delete the network interfaces. To learn more, see [Add or remove from application security groups](virtual-network-network-interface.md#add-or-remove-from-application-security-groups) or [Delete a network interface](virtual-network-network-interface.md#delete-a-network-interface).
@@ -662,7 +648,6 @@ az network asg delete --resource-group myResourceGroup --name myASG
662648
```
663649

664650
---
665-
666651
## Permissions
667652

668653
To do tasks on network security groups, security rules, and application security groups, your account must be assigned to the [Network contributor](../role-based-access-control/built-in-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json#network-contributor) role or to a [Custom role](../role-based-access-control/custom-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json) that's assigned the appropriate permissions as listed in the following tables:
@@ -677,10 +662,12 @@ To do tasks on network security groups, security rules, and application security
677662
| Microsoft.Network/networkSecurityGroups/join/action | Associate a network security group to a subnet or network interface
678663

679664

665+
680666
>[!NOTE]
681667
> To perform `write` operations on a network security group, the subscription account must have at least `read` permissions for resource group along with `Microsoft.Network/networkSecurityGroups/write` permission.
682668
683669

670+
684671
### Network security group rule
685672

686673
| Action | Name |
@@ -703,3 +690,4 @@ To do tasks on network security groups, security rules, and application security
703690

704691
- Add or remove [a network interface to or from an application security group](./virtual-network-network-interface.md?tabs=network-interface-portal#add-or-remove-from-application-security-groups).
705692
- Create and assign [Azure Policy definitions](./policy-reference.md) for virtual networks
693+

0 commit comments

Comments
 (0)