-
Notifications
You must be signed in to change notification settings - Fork 21.5k
/
update-virtual-network-peering-address-space.yml
114 lines (103 loc) · 6.59 KB
/
update-virtual-network-peering-address-space.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
###YamlMime:HowTo
---
metadata:
title: Update the address space for a peered virtual network - Azure portal
description: Learn how to add, modify, or delete the address ranges for a peered virtual network without downtime.
author: asudbring
ms.author: allensu
ms.date: 03/21/2023
ms.service: azure-virtual-network
ms.topic: how-to
ms.custom:
- template-how-to
- ge-structured-content-pilot
#customer intent: As a <role>, I want <what> so that <why>.
title: |
Update the address space for a peered virtual network using the Azure portal
introduction: |
In this article, you learn how to update a peered virtual network by modifying, adding, or deleting an address space using the Azure portal. These updates don't incur downtime interruptions. This feature is useful when you need to grow or resize the virtual networks in Azure after scaling your workloads.
prerequisites:
summary: |
There are two items:
dependencies:
- An existing peered virtual network with two virtual networks
- If you add an address space, ensure that it doesn't overlap other address spaces
procedureSection:
- title: |
Modify the address range prefix of an existing address range
summary:
In this section, you modify the address range prefix for an existing address range within your peered virtual network.
steps:
- |
In the search box at the top of the Azure portal, enter *virtual networks*. Select **Virtual networks** from the search results.
- |
From the list of virtual networks, select the virtual network to modify.
- |
Under **Settings**, select **Address space**.
- |
On the **Address space** page, change the address range prefix per your requirements, and select **Save**.
:::image type="content" source="media/update-virtual-network-peering-address-space/update-address-prefix-thumb.png" alt-text="Screenshot of the Address Space page for changing a subnet's prefix." lightbox="media/update-virtual-network-peering-address-space/update-address-prefix-full.png":::
- |
Under **Settings**, select **Peerings** and select the checkbox for the peering that you want to sync.
- |
Select **Sync** from the taskbar.
:::image type="content" source="media/update-virtual-network-peering-address-space/sync-peering-thumb.png" alt-text="Screenshot of the Peerings page where you resync a peering connection." lightbox="media/update-virtual-network-peering-address-space/sync-peering-full.png":::
- |
Select the peer to resync. Select the directory to authenticate if needed in **Virtual network peering sync**.
- |
Under **Settings** for the peered virtual network, select **Address space** and verify that the address space listed has been updated.
:::image type="content" source="media/update-virtual-network-peering-address-space/verify-address-space-thumb.png" alt-text="Screenshot of the Address Space page where you verify the address space has changed." lightbox="media/update-virtual-network-peering-address-space/verify-address-space-full.png":::
> [!NOTE]
> When you update the address space for a virtual network, you need to sync the virtual network peer for each remote peered virtual network. We recommend that you run sync after every resize address space operation instead of performing multiple resizing operations and then running the sync operation.
>
> The following actions require you to sync:
>
> - Modifying the address range prefix of an existing address range, for example changing 10.1.0.0/16 to 10.1.0.0/18
> - Adding address ranges to a virtual network
> - Deleting address ranges from a virtual network
- title: |
Add an address range
summary: |
In this section, you add an IP address range to the IP address space of a peered virtual network.
steps:
- |
In the search box at the top of the Azure portal, enter *virtual networks*. Select **Virtual networks** from the search results.
- |
From the list of virtual networks, select the virtual network where you're adding an address range.
- |
Under **Settings**, select **Address space**.
- |
On the **Address space** page, add the address range per your requirements, and select **Save** when finished.
:::image type="content" source="media/update-virtual-network-peering-address-space/add-address-range-thumb.png" alt-text="Screenshot of the Address Space page used to add an IP address range." lightbox="media/update-virtual-network-peering-address-space/add-address-range-full.png":::
- |
Under **Settings**, select **Peering**, and sync the peering connection.
- |
Under **Settings** for the peered virtual network, select **Address space** and verify that the address space listed has been updated.
- title: |
Delete an address range
summary: |
In this task, you delete an IP address range from a subnet in a peered virtual network.
> [!IMPORTANT]
> Before you can delete an address space, it must be empty. If a resource or service exists in the address range, you can't remove the address range. To remove an address range, you must remove any resource or services using the address range within the subnet.
steps:
- |
In the search box at the top of the Azure portal, enter *virtual networks*. Select **Virtual networks** from the search results.
- |
From the list of virtual networks, select the virtual network from which to remove the address range.
- |
Under **Settings**, select **Address space**.
- |
To the right of the address range you want to remove, select the trash can icon.
:::image type="content" source="media/update-virtual-network-peering-address-space/delete-subnet.png" alt-text="Screenshot shows removal of address range from a subnet.":::
:::image type="content" source="media/update-virtual-network-peering-address-space/delete-subnet-1.png" alt-text="Screenshot shows the saving of the changes to the subnet address range.":::
- |
Select **Save** after you complete your changes.
- |
Under **Settings**, select **Peering** and sync the peering connection.
- |
Under **Settings** for the peered virtual network, select **Address space** and verify that the address space listed has been updated.
relatedContent:
- text: Create, change, or delete a virtual network peering
url: virtual-network-manage-peering.md
- text: Create, change, or delete a virtual network
url: manage-virtual-network.yml