|
| 1 | +--- |
| 2 | +title: Create a security admin rule using network groups |
| 3 | +titleSuffix: Azure Virtual Network Manager |
| 4 | +description: Learn how to deploy security admin rules using network groups as the source and destination in Azure Virtual Network Manager. |
| 5 | +author: mbender-ms |
| 6 | +ms.author: mbender |
| 7 | +ms.service: virtual-network-manager |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 04/01/2024 |
| 10 | +ms.custom: template-how-to |
| 11 | +#Customer intent: As a network administrator, I want to deploy security admin rules using network groups in Azure Virtual Network Manager so that I can define the source and destination of the traffic for the security admin rule. |
| 12 | +--- |
| 13 | +# Create a security admin rule using network groups in Azure Virtual Network Manager |
| 14 | + |
| 15 | +In Azure Virtual Network Manager, you can deploy [security admin rules](./concept-security-admins.md) using [network groups](./concept-network-groups.md). Security admin rules and network groups allow you to define the source and destination of the traffic for the security admin rule. |
| 16 | + |
| 17 | +In this article, you learn how to create a security admin rule using network groups in Azure Virtual Network Manager. You use the Azure portal to create a security admin configuration, add a security admin rule, and deploy the security admin configuration. |
| 18 | + |
| 19 | +[!INCLUDE [virtual-network-manager-preview](../../includes/virtual-network-manager-network-groups-source-destination-preview.md)] |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | + |
| 23 | +To complete this article, you need the following resources: |
| 24 | + |
| 25 | +- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin. |
| 26 | + |
| 27 | +- An Azure Virtual Network Manager instance. If you don't have an instance, see [Create an Azure Virtual Network Manager instance](create-virtual-network-manager-portal.md). |
| 28 | + |
| 29 | +- A network group. If you don't have a network group, see [Create a network group](create-virtual-network-manager-portal.md#create-a-network-group). |
| 30 | + |
| 31 | +## Create a security admin configuration |
| 32 | + |
| 33 | +To create a security admin configuration, follow these steps: |
| 34 | + |
| 35 | +1. In the **Azure portal**, search for and select **Virtual Network Manager**. |
| 36 | + |
| 37 | +1. Select **Network Managers** under **Virtual network manager** on the left side of the portal window. |
| 38 | + |
| 39 | +1. In the **Virtual Network Manager | Network managers** window, select your network manager instance. |
| 40 | + |
| 41 | +1. Select **Configuration** under **Settings** on the left side of the portal window. |
| 42 | + |
| 43 | +1. In the **Configurations** window, select the **Create security admin configuration** button or **+ Create > Security admin configuration** from the drop-down menu. |
| 44 | + |
| 45 | + :::image type="content" source="media/how-to-create-security-admin-rules-network-groups/create-security-admin-configuration.png" alt-text="Screenshot of creation of security admin configuration in Configurations of a network manager."::: |
| 46 | + |
| 47 | +1. In the **Basics** tab of the **Create security admin configuration** windows, enter the following settings: |
| 48 | + |
| 49 | + | **Setting** | **Value** | |
| 50 | + | --- | --- | |
| 51 | + | Name | Enter a name for the security admin rule. | |
| 52 | + | Description | Enter a description for the security admin rule. | |
| 53 | + |
| 54 | + |
| 55 | +1. Select the **Deployment Options** tab or **Next: Deployment Options >** and enter the following settings: |
| 56 | + |
| 57 | + | **Setting** | **Value** | |
| 58 | + | --- | --- | |
| 59 | + | **Deployment option for NIP virtual networks** | | |
| 60 | + | Deployment option | Select **None**. | |
| 61 | + | **Option to use network group as source and destination** | | |
| 62 | + | Network group address space aggregation option | Select **Manual**. | |
| 63 | + |
| 64 | + :::image type="content" source="media/how-to-create-security-admin-rules-network-groups/create-configuration-with-aggregation-options.png" alt-text="Screenshot of create a security admin configuration deployment options selecting manual aggregation option."::: |
| 65 | + |
| 66 | +1. Select **Rule collections** or **Next: Rule collections >**. |
| 67 | +2. In the Rule collections tab, select **Add**. |
| 68 | +3. In the **Add a rule collection** window, enter the following settings: |
| 69 | + |
| 70 | + | **Setting** | **Value** | |
| 71 | + | --- | --- | |
| 72 | + | Name | Enter a name for the rule collection. | |
| 73 | + | Target network groups | Select the network group that contains the source and destination of the traffic for the security admin rule. | |
| 74 | + |
| 75 | +1. Select **Add** and enter the following settings in the **Add a rule** window: |
| 76 | + |
| 77 | + | **Setting** | **Value** | |
| 78 | + | --- | --- | |
| 79 | + | Name | Enter a name for the security admin rule. | |
| 80 | + | Description | Enter a description for the security admin rule. | |
| 81 | + | Priority | Enter a priority for the security admin rule. | |
| 82 | + | Action | Select the action type for the security admin rule. | |
| 83 | + | Direction | Select the direction for the security admin rule. | |
| 84 | + | Protocol | Select the protocol for the security admin rule. | |
| 85 | + | **Source** | | |
| 86 | + | Source type | Select **Network group**. | |
| 87 | + | Source port | Enter the source port for the security admin rule. | |
| 88 | + | **Destination** | | |
| 89 | + | Destination type | Select **Network Group**. | |
| 90 | + | Network Group | Select the network group ID that you wish to use for dynamically establishing IP address ranges. | |
| 91 | + | Destination port | Enter the destination port for the security admin rule. | |
| 92 | + |
| 93 | + :::image type="content" source="media/how-to-create-security-admin-rules-network-groups/create-network-group-as-source-destination-rule.png" alt-text="Screenshot of add a rule window using network groups as source and destination in rule creation."::: |
| 94 | + |
| 95 | +2. Select **Add** and **Add** again to add the security admin rule to the rule collection. |
| 96 | + |
| 97 | +3. Select **Review + create** and then select **Create**. |
| 98 | + |
| 99 | +## Deploy the security admin configuration |
| 100 | + |
| 101 | +Use the following steps to deploy the security admin configuration: |
| 102 | + |
| 103 | +1. Return to the **Configurations** window and select the security admin configuration you created. |
| 104 | + |
| 105 | +1. Select your security admin configuration and then select **Deploy**. |
| 106 | + |
| 107 | +1. In **Deploy security admin configuration**, select the target Azure regions for security admin configuration and select **Next > Deploy**. |
| 108 | + |
| 109 | +## Next step |
| 110 | + |
| 111 | +> [!div class="nextstepaction"] |
| 112 | +> [View configurations applied by Azure Virtual Network Manager](how-to-view-applied-configurations.md) |
| 113 | +
|
| 114 | + |
| 115 | + |
0 commit comments