Skip to content

Commit 38b06a0

Browse files
committed
[APIM] stv1 migration - preserve IP availability
1 parent 5300e86 commit 38b06a0

File tree

4 files changed

+42
-12
lines changed

4 files changed

+42
-12
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@ API Management platform migration from `stv1` to `stv2` involves updating the un
4343

4444
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
4545

46+
[!INCLUDE [api-management-migration-precreated-ip](../../includes/api-management-migration-precreated-ip.md)]
47+
4648
## Migrate the instance to stv2 platform
4749

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

5053
* **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.
5154

5255
* **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.
5356

57+
[!INCLUDE [api-management-migration-precreated-ip](../../includes/api-management-migration-precreated-ip.md)]
58+
59+
### Migration steps
60+
5461
#### [Portal](#tab/portal)
5562

5663
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 & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ 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. The process takes longer 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.
4242
* For migration scenarios when a new VIP address is generated:
@@ -79,6 +79,8 @@ You can migrate your API Management instance to the `stv2` platform keeping the
7979

8080
### Public IP address options - same-subnet migration
8181

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

8486
* **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 +92,7 @@ You can choose whether the API Management instance's original VIP address is pre
9092
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.
9193

9294

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.
95+
[!INCLUDE [api-management-migration-precreated-ip](../../includes/api-management-migration-precreated-ip.md)]
10196

10297
### Expected downtime and compute retention
10398

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

108+
[!INCLUDE [api-management-migration-no-preserve-ip](../../includes/api-management-migration-no-preserve-ip.md)]
113109

114110
### Migration script
115111

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-
112+
[!INCLUDE [api-management-migration-no-preserve-ip](../../includes/api-management-migration-no-preserve-ip.md)]
119113

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

122116

117+
> [!NOTE]
118+
> 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.
119+
123120
## Option 2: Migrate and change to new subnet
124121

125122
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 migrate and preserve the VIP address is temporarily available for VNet-injected instances. All migrations during this time to the `stv2` platform 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)