|
| 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/17/2024 |
| 10 | +ms.custom: template-how-to, references_regions |
| 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 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. |
| 16 | + |
| 17 | +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. |
| 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 | + > [!NOTE] |
| 67 | + > The **Network group address space aggregation option** setting allows you to reference network groups in your security admin rules. Once elected, the virtual network manager instance will aggregate the CIDR ranges of the network groups referenced as the source and destination of the security admin rules in the configuration. With the manual aggregation option, the CIDR ranges in the network group are aggregated only when you deploy the security admin configuration. This allows you to commit the CIDR ranges on your schedule. |
| 68 | +
|
| 69 | +2. Select **Rule collections** or **Next: Rule collections >**. |
| 70 | +3. In the Rule collections tab, select **Add**. |
| 71 | +4. In the **Add a rule collection** window, enter the following settings: |
| 72 | + |
| 73 | + | **Setting** | **Value** | |
| 74 | + | --- | --- | |
| 75 | + | Name | Enter a name for the rule collection. | |
| 76 | + | Target network groups | Select the network group that contains the source and destination of the traffic for the security admin rule. | |
| 77 | + |
| 78 | +5. Select **Add** and enter the following settings in the **Add a rule** window: |
| 79 | + |
| 80 | + | **Setting** | **Value** | |
| 81 | + | --- | --- | |
| 82 | + | Name | Enter a name for the security admin rule. | |
| 83 | + | Description | Enter a description for the security admin rule. | |
| 84 | + | Priority | Enter a priority for the security admin rule. | |
| 85 | + | Action | Select the action type for the security admin rule. | |
| 86 | + | Direction | Select the direction for the security admin rule. | |
| 87 | + | Protocol | Select the protocol for the security admin rule. | |
| 88 | + | **Source** | | |
| 89 | + | Source type | Select **Network group**. | |
| 90 | + | Source port | Enter the source port for the security admin rule. | |
| 91 | + | **Destination** | | |
| 92 | + | Destination type | Select **Network Group**. | |
| 93 | + | Network Group | Select the network group ID that you wish to use for dynamically establishing IP address ranges. | |
| 94 | + | Destination port | Enter the destination port for the security admin rule. | |
| 95 | + |
| 96 | + :::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."::: |
| 97 | + |
| 98 | +6. Select **Add** and **Add** again to add the security admin rule to the rule collection. |
| 99 | + |
| 100 | +7. Select **Review + create** and then select **Create**. |
| 101 | + |
| 102 | +## Deploy the security admin configuration |
| 103 | + |
| 104 | +Use the following steps to deploy the security admin configuration: |
| 105 | + |
| 106 | +1. Return to the **Configurations** window and select the security admin configuration you created. |
| 107 | + |
| 108 | +1. Select your security admin configuration and then select **Deploy**. |
| 109 | + |
| 110 | +1. In **Deploy security admin configuration**, select the target Azure regions for security admin configuration and select **Next > Deploy**. |
| 111 | + |
| 112 | +## Next step |
| 113 | + |
| 114 | +> [!div class="nextstepaction"] |
| 115 | +> [View configurations applied by Azure Virtual Network Manager](how-to-view-applied-configurations.md) |
| 116 | +
|
| 117 | + |
| 118 | + |
0 commit comments