Skip to content

Commit 4915b0b

Browse files
authored
Merge pull request #285854 from dlepow/nopreserveip
[APIM] stv1 migration - preserve IP availability
2 parents 7c990f7 + a9df3c2 commit 4915b0b

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

articles/api-management/migrate-stv1-to-stv2-no-vnet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,17 @@ API Management platform migration from `stv1` to `stv2` involves updating the un
4545

4646
## Migrate the instance to stv2 platform
4747

48+
### Public IP address options
4849
You can choose whether the virtual IP address of API Management will change, or whether the original VIP address is preserved.
4950

5051
* **New virtual IP address** - If you choose this mode, API requests remain responsive during migration. Infrastructure configuration (such as custom domains, locations, and CA certificates) will be locked for 30 minutes. After migration, you'll need to update any network dependencies including DNS, firewall rules, and VNets to use the new VIP address.
5152

5253
* **Preserve IP address** - If you preserve the VIP address, API requests will be unresponsive for approximately 15 minutes while the IP address is migrated to the new infrastructure. Infrastructure configuration (such as custom domains, locations, and CA certificates) will be locked for 45 minutes. No further configuration is required after migration.
5354

55+
[!INCLUDE [api-management-migration-precreated-ip](../../includes/api-management-migration-precreated-ip.md)]
56+
57+
### Migration steps
58+
5459
#### [Portal](#tab/portal)
5560

5661
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.

articles/api-management/migrate-stv1-to-stv2-vnet.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ If you need to migrate a *non-VNnet-injected* API Management hosted on the `stv1
3636

3737
API Management platform migration from `stv1` to `stv2` involves updating the underlying compute alone and has no impact on the service/API configuration persisted in the storage layer.
3838

39-
* The upgrade process involves creating a new compute in parallel to the old compute, which can take up to 45 minutes.
39+
* The upgrade process involves creating a new compute in parallel to the old compute, which can take up to 45 minutes. Plan longer times for multi-region deployments and in scenarios that involve changing the subnet more than once.
4040
* The API Management status in the Azure portal will be **Updating**.
4141
* For certain migration options, the VIP address (or addresses, for a multi-region deployment) of the instance will change. If you migrate and keep the same subnet configuration, you can choose to preserve the VIP address or a new public VIP will be generated.
42+
[!INCLUDE [api-management-migration-no-preserve-ip](../../includes/api-management-migration-no-preserve-ip.md)]
4243
* For migration scenarios when a new VIP address is generated:
4344
* Azure manages the migration.
4445
* The gateway DNS still points to the old compute if a custom domain is in use.
@@ -79,6 +80,8 @@ You can migrate your API Management instance to the `stv2` platform keeping the
7980

8081
### Public IP address options - same-subnet migration
8182

83+
[!INCLUDE [api-management-migration-no-preserve-ip](../../includes/api-management-migration-no-preserve-ip.md)]
84+
8285
You can choose whether the API Management instance's original VIP address is preserved (recommended) or whether a new VIP address will be generated.
8386

8487
* **Preserve virtual IP address** - If you preserve the VIP address in a VNet in external mode, API requests can remain responsive during migration (see [Expected downtime](#expected-downtime-and-compute-retention)); for a VNet in internal mode, temporary downtime is expected. Infrastructure configuration (such as custom domains, locations, and CA certificates) will be locked for 45 minutes. No further configuration is required after migration.
@@ -90,14 +93,7 @@ You can choose whether the API Management instance's original VIP address is pre
9093
With this option, the `stv1` compute is retained for a period by default after migration is complete so that you can validate the migrated instance and confirm the network and DNS configuration.
9194

9295

93-
### Precreated IP address for migration
94-
95-
API Management precreates a public IP address for the migration process. Find the precreated IP address in the JSON output of your API Management instance's properties. Under `customProperties`, the precreated IP address is the value of the `Microsoft.WindowsAzure.ApiManagement.Stv2MigrationPreCreatedIps` property. For a multi-region deployment, the value is a comma-separated list of precreated IP addresses.
96-
97-
Use the precreated IP address (or addresses) to help you manage the migration process:
98-
99-
* When you migrate and preserve the VIP address, the precreated IP address is assigned temporarily to the new `stv2` deployment, before the original IP address is assigned to the `stv2` deployment. If you have firewall rules limiting access to the API Management instance, for example, you can add the precreated IP address to the allowlist to preserve continuity of client access during migration. After migration is complete, you can remove the precreated IP address from your allowlist.
100-
* When you migrate and generate a new VIP address, the precreated IP address is assigned to the new `stv2` deployment during migration and persists after migration is complete. Use the precreated IP address to update your network dependencies, such as DNS and firewall rules, to point to the new IP address.
96+
[!INCLUDE [api-management-migration-precreated-ip](../../includes/api-management-migration-precreated-ip.md)]
10197

10298
### Expected downtime and compute retention
10399

@@ -110,16 +106,16 @@ When migrating a VNet-injected instance and keeping the same subnet configuratio
110106
|Internal | Preserve VIP | Downtime for approximately 20 minutes during migration while the existing IP address is assigned to the new `stv2` deployment. | No retention |
111107
|Internal | New VIP | No downtime | Retained by default for 4 hours to allow you to update network dependencies |
112108

113-
114109
### Migration script
115110

116-
> [!NOTE]
117-
> If your API Management instance is deployed in multiple regions, the REST API migrates the VNet settings for all locations of your instance using a single call.
118-
111+
[!INCLUDE [api-management-migration-no-preserve-ip](../../includes/api-management-migration-no-preserve-ip.md)]
119112

120113
[!INCLUDE [api-management-migration-cli-steps](../../includes/api-management-migration-cli-steps.md)]
121114

122115

116+
> [!NOTE]
117+
> If your API Management instance is deployed in multiple regions, the REST API migrates the VNet settings for all locations of your instance using a single call.
118+
123119
## Option 2: Migrate and change to new subnet
124120

125121
Using the Azure portal, you can migrate your instance by specifying a different subnet in the same or a different VNet. After migration, optionally migrate back to the instance's original subnet.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
author: dlepow
3+
ms.service: azure-api-management
4+
ms.topic: include
5+
ms.date: 08/29/2024
6+
ms.author: danlep
7+
---
8+
9+
> [!IMPORTANT]
10+
> As of August 2024, the option to preserve the VIP address is temporarily unavailable for VNet-injected instances migrating in the same subnet. All migrations to the `stv2` platform during this time must use a new VIP address.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
author: dlepow
3+
ms.service: azure-api-management
4+
ms.topic: include
5+
ms.date: 08/29/2024
6+
ms.author: danlep
7+
---
8+
9+
### Precreated IP address for migration
10+
11+
For API Management instances that are reachable by a public IP address, API Management precreates a public IP address for the migration process. Find the precreated IP address in the JSON output of your API Management instance's properties. Under `customProperties`, the precreated IP address is the value of the `Microsoft.WindowsAzure.ApiManagement.Stv2MigrationPreCreatedIps` property. For a multi-region deployment, the value is a comma-separated list of precreated IP addresses.
12+
13+
Use the precreated IP address (or addresses) to help you manage the migration process:
14+
15+
* When you migrate and preserve the VIP address, the precreated IP address is assigned temporarily to the new `stv2` deployment, before the original IP address is assigned to the `stv2` deployment. If you have firewall rules limiting access to the API Management instance, for example, you can add the precreated IP address to the allowlist to preserve continuity of client access during migration. After migration is complete, you can remove the precreated IP address from your allowlist.
16+
* When you migrate and generate a new VIP address, the precreated IP address is assigned to the new `stv2` deployment during migration and persists after migration is complete. Use the precreated IP address to update your network dependencies, such as DNS and firewall rules, to point to the new IP address.

0 commit comments

Comments
 (0)