|
| 1 | +--- |
| 2 | +title: Manage IP addresses with Azure Virtual Network Manager |
| 3 | +description: Learn how to manage IP addresses with Azure Virtual Network Manager by creating and assigning IP address pools to your virtual networks. |
| 4 | +author: mbender-ms |
| 5 | +ms.author: mbender |
| 6 | +ms.service: azure-virtual-network-manager |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 10/2/2024 |
| 9 | +ms.custom: references_regions |
| 10 | +#customer intent: As a network administrator, I want to learn how to manage IP addresses with Azure Virtual Network Manager so that I can create and assign IP address pools to my virtual networks. |
| 11 | +--- |
| 12 | + |
| 13 | +# Manage IP addresses with Azure Virtual Network Manager |
| 14 | + |
| 15 | +[!INCLUDE [virtual-network-manager-ipam](../../includes/virtual-network-manager-ipam.md)] |
| 16 | + |
| 17 | +Azure Virtual Network Manager allows you to manage IP addresses by creating and assigning IP address pools to your virtual networks. This article shows you how to create and assign IP address pools to your virtual networks with IP address management (IPAM) in Azure Virtual Network Manager. |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin. |
| 22 | +- An existing network manager instance. If you don't have a network manager instance, see [Create a network manager instance](create-virtual-network-manager-portal.md). |
| 23 | +- A virtual network that you want to associate with an IP address pool. |
| 24 | +- To manage IP addresses in your network manager, you have the **Network Contributor** role with [role-based access control](../role-based-access-control/quickstart-assign-role-user-portal.md) Classic Admin/legacy authorization isn't supported. |
| 25 | + |
| 26 | +## Create an IP address pool |
| 27 | + |
| 28 | +In this step, you create an IP address pool for your virtual network. |
| 29 | + |
| 30 | +1. In the Azure portal, search for and select **Network managers**. |
| 31 | +2. Select your network manager instance. |
| 32 | +3. In the left menu, select **IP address pools (Preview)** under **IP address management (Preview)**. |
| 33 | +4. Select **+ Create** or **Create** to create a new IP address pool. |
| 34 | +5. In the **Create an IP address pool** window, enter the following information: |
| 35 | + |
| 36 | + | Field | Description | |
| 37 | + | --- | --- | |
| 38 | + | **Name** | Enter a name for the IP address pool. | |
| 39 | + | **Description** | Enter a description for the IP address pool. | |
| 40 | + | **Parent pool** | For creating a **root pool**, leave default of **None**. For creating a **child pool**, select the parent pool. | |
| 41 | + |
| 42 | + :::image type="content" source="media/how-to-manage-ip-addresses/create-root-pool.png" alt-text="Screenshot of Create an ip address pool settings for a root pool." ::: |
| 43 | + |
| 44 | +6. Select **Next** or the **IP addresses** tab. |
| 45 | +7. Under **Starting address**, enter the IP address range for the pool. |
| 46 | + |
| 47 | + :::image type="content" source="media/how-to-manage-ip-addresses/set-pool-ip-range-thumb.png" alt-text="Screenshot of IP address range settings for a root pool." lightbox="media/how-to-manage-ip-addresses/set-pool-ip-range.png"::: |
| 48 | + |
| 49 | +8. Select **Review + create** and then **Create** to create the IP address pool. |
| 50 | +9. Repeat these steps for another root or child pool. |
| 51 | + |
| 52 | +## Associate a virtual network with an IP address pool |
| 53 | + |
| 54 | +In this step, you associate an existing virtual network with an IP address pool from the **Allocations** settings page in the IP address pool. |
| 55 | + |
| 56 | +1. Browse to your network manager instance and select your IP address pool. |
| 57 | +2. From the left menu, select **Allocations** under **Settings** or select **Allocate**. |
| 58 | +3. In the **Allocations** window, select **+ Create** > **Associate resources**. The **Associate resources** option allocates a CIDR to an existing virtual network. |
| 59 | + |
| 60 | + :::image type="content" source="media/how-to-manage-ip-addresses/pool-allocation-settings-associate-resource-thumb.png" alt-text="Screenshot of allocations page for associating resources." lightbox="media/how-to-manage-ip-addresses/pool-allocation-settings-associate-resource.png"::: |
| 61 | + |
| 62 | +4. In the **Select resources** window, select the virtual networks you want to associate with the IP address pool and then choose **Select**. |
| 63 | + |
| 64 | + :::image type="content" source="media/how-to-manage-ip-addresses/associate-virtual-network-resources-thumb.png" alt-text="Screenshot of associate resources page with virtual networks selected." lightbox="media/how-to-manage-ip-addresses/associate-virtual-network-resources.png"::: |
| 65 | + |
| 66 | +5. Verify the virtual network is listed. |
| 67 | + |
| 68 | + :::image type="content" source="media/how-to-manage-ip-addresses/ip-address-pool-allocation-statistics.png" alt-text="Screenshot of IP address pool allocations and statistics."::: |
| 69 | + |
| 70 | +> [!Note] |
| 71 | +> In addition to associating resources, you can allocate address spaces to a child pool or a static CIDR block from the a pool's Allocations page. |
| 72 | +
|
| 73 | +## Create static CIDR blocks for a pool |
| 74 | + |
| 75 | +In this step, you create a static CIDR block for a pool. This is helpful for allocating a space that is outside of Azure or Azure resources not supported by IPAM. For example, you can allocate a CIDR in the pool to the address space in your on-premises environment. Likewise, you can also use this for a space that is used by a Virtual WAN hub or Azure VMware Private Cloud. |
| 76 | + |
| 77 | +1. Browse to your IP address pool. |
| 78 | +2. Select **Allocate** or **Allocations** under **Settings**. |
| 79 | +3. In the **Allocations** window, select **+ Create** > **Allocate static CIDRs**. |
| 80 | +4. In the **Allocate static CIDRs from pool** window, enter the following information: |
| 81 | + |
| 82 | + | Field | Description | |
| 83 | + | --- | --- | |
| 84 | + | **Name** | Enter a name for the static CIDR block.| |
| 85 | + | **Description** | Enter a description for the static CIDR block. | |
| 86 | + | **CIDR** | Enter the CIDR block. | |
| 87 | + |
| 88 | + :::image type="content" source="media/how-to-manage-ip-addresses/create-static-cidr-reservation.png" alt-text="Screenshot of Allocate static CIDR from pool window with address range for CIDR reservation."::: |
| 89 | + |
| 90 | +5. Select **Allocate**. |
| 91 | + |
| 92 | +## Review allocation usage |
| 93 | + |
| 94 | +In this step, you review the allocation usage of the IP address pool. This helps you understand how the CIDRs are being used in the pool, along with the percentage of the pool that is allocated and the compliance status of the pool. |
| 95 | + |
| 96 | +1. Browse to your IP address pool. |
| 97 | +2. Select **Allocations** under **Settings**. |
| 98 | +3. In the **Allocations** window, you can review all of the statistics for the address pool including: |
| 99 | + |
| 100 | + | Field | Description | |
| 101 | + | --- | --- | |
| 102 | + | **Pool address space** | The total address space that is allocated to the pool. | |
| 103 | + | **Allocated address Space** | The address space that is allocated to the pool. | |
| 104 | + | **Available address Space** | The address space that is available for allocation. | |
| 105 | + | **Available address count** | The number of addresses that are allocated to the pool. | |
| 106 | + | **IP allocation** | The set of IP addresses that are allocated from the pool for potential use. | |
| 107 | + |
| 108 | + :::image type="content" source="media/how-to-manage-ip-addresses/review-ip-address-pool-allocations.png" alt-text="Screenshot of an IP address pool's allocations and statistics for the pool."::: |
| 109 | + |
| 110 | +4. For each allocation, you can review the following: |
| 111 | + |
| 112 | + | Field | Description | |
| 113 | + | --- | --- | |
| 114 | + | **Name** | The name of the allocation. | |
| 115 | + | **Address space** | The address space that is allocated to the pool. | |
| 116 | + | **Address count** | The number of addresses that are allocated to the pool. | |
| 117 | + | **IP allocation** | The set of IP addresses that are allocated from the pool for potential use. | |
| 118 | + | **Status** | The status of the allocation to the pool. | |
| 119 | + |
| 120 | + :::image type="content" source="media/how-to-manage-ip-addresses/review-ip-address-pool-allocations-by-resource.png" alt-text="Screenshot of ip address pool allocations highlighting individual resource information."::: |
| 121 | + |
| 122 | +## Delegating permissions for IP address management |
| 123 | + |
| 124 | +In this step, you delegate permissions to other users to manage IP address pools in your network manager using [Azure role-based access control (RBAC)](../role-based-access-control/check-access.md). This allows you to control access to the IP address pools and ensure that only authorized users can manage the pools. |
| 125 | + |
| 126 | +1. Browse to your IP address pool. |
| 127 | +2. In the left menu, select **Access control (IAM)**. |
| 128 | +3. In the **Access control (IAM)** window, select **+ Add**>**Add role assignment**. |
| 129 | +4. Under **Role**, select **IPAM Pool User** through the search bar under the **Job function roles** tab, and then select **Next**. |
| 130 | +5. On the **Members** tab, select how you wish to assign access to the role. You can assign access to a user, group, or service principal, or you can use a managed identity. |
| 131 | + |
| 132 | + :::image type="content" source="media/how-to-manage-ip-addresses/delegate-ip-address-pool-permissions.png" alt-text="Screenshot of the Add role assignment window with IPAM Pool User selected."::: |
| 133 | + |
| 134 | +6. Choose **+ Select members** and then **Select** the user, group, service principal, or managed identity that you want to assign the role to. |
| 135 | +7. Select **Review + assign** and then **Assign** to delegate permissions to the user. |
| 136 | + |
| 137 | + |
| 138 | +## Create a virtual network with a nonoverlapping CIDR range |
| 139 | + |
| 140 | +In this step, you create a virtual network with a nonoverlapping CIDR range by allowing IPAM to automatically provide a nonoverlapping CIDR. |
| 141 | + |
| 142 | +1. In the Azure portal, search for and select **Virtual networks**. |
| 143 | +2. Select **+ Create**. |
| 144 | +3. On the **Basics** tab, enter the following information: |
| 145 | + |
| 146 | + | Field | Description | |
| 147 | + | --- | --- | |
| 148 | + | **Subscription** | Select the subscription managed by a Network Manager management scope. | |
| 149 | + | **Resource group** | Select the resource group for the virtual network. | |
| 150 | + | **Name** | Enter a name for the virtual network. | |
| 151 | + | **Region** | Select the region for the virtual network. IP address pools must be in the same region as your virtual network in order to be associated.| |
| 152 | + |
| 153 | +4. Select the **IP addresses** tab or **Next** > **Next**. |
| 154 | +5. On the **IP addresses** tab, select **Allocate using IP address pools** checkbox. |
| 155 | + |
| 156 | + :::image type="content" source="media/how-to-manage-ip-addresses/create-virtual-network-ip-address-pool.png" alt-text="Screenshot of create virtual network window with Allocate using IP address setting."::: |
| 157 | + |
| 158 | +6. In the **Select an IP address pool** window, select the IP address pool that you want to associate with the virtual network and then choose **Save**. You can select at most one IPv4 pool and one IPv6 pool for association to a single virtual network. |
| 159 | + |
| 160 | + :::image type="content" source="media/how-to-manage-ip-addresses/virtual-network-create-select-ip-address-pool-thumb.png" alt-text="Screenshot of Select an IP address pool with IP address pool selected." lightbox="media/how-to-manage-ip-addresses/virtual-network-create-select-ip-address-pool.png"::: |
| 161 | + |
| 162 | +7. From the dropdown menu next to your IP address pool, select the size for the virtual network. |
| 163 | + |
| 164 | + :::image type="content" source="media/how-to-manage-ip-addresses/virtual-network-create-select-address-space-size.png" alt-text="Screenshot of Create virtual network window with IP address size selection."::: |
| 165 | + |
| 166 | +8. Optionally create subnets referring to the selected pool. |
| 167 | +9. Select **Review + create** and then **Create** to create the virtual network. |
| 168 | + |
| 169 | +## Next steps |
| 170 | + |
| 171 | +> [!div class="nextstepaction"] |
| 172 | +> [What is IP address management in Azure Virtual Network Manager](./concept-ip-address-management.md) |
| 173 | +
|
0 commit comments