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
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.
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.
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
> This procedure only applies to a custom security rule. You aren't allowed to change a default security rule.
494
485
495
486
---
496
-
497
487
## Work with application security groups
498
488
499
489
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
517
507
| Name | Enter a name for the application security group you're creating. |
518
508
| Region | Select the region you want to create the application security group in. |
519
509
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.":::
521
511
522
512
5. Select **Review + create**.
523
513
@@ -540,7 +530,6 @@ az network asg create --resource-group myResourceGroup --name myASG --location e
> You can't change the resource group, subscription or location of an application security group using the Azure CLI.
630
617
631
618
---
632
-
633
619
### Delete an application security group
634
620
635
621
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).
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
677
662
| Microsoft.Network/networkSecurityGroups/join/action | Associate a network security group to a subnet or network interface
678
663
679
664
665
+
680
666
>[!NOTE]
681
667
> 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.
682
668
683
669
670
+
684
671
### Network security group rule
685
672
686
673
| Action | Name |
@@ -703,3 +690,4 @@ To do tasks on network security groups, security rules, and application security
703
690
704
691
- 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).
705
692
- Create and assign [Azure Policy definitions](./policy-reference.md) for virtual networks
0 commit comments