You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/migrate-stv1-to-stv2.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
title: Migrate Azure API Management instance to stv2 platform | Microsoft Docs
3
-
description: Follow the steps in this article to migrate your Azure API Management instance from the stv1 compute platform to the stv2 compute platform. Migration steps depend on whether the instance is deployed (injected) in a VNet.
3
+
description: Follow these steps to migrate your Azure API Management instance from the stv1 compute platform to the stv2 compute platform. Migration steps depend on whether the instance is deployed (injected) in a VNet.
4
4
5
5
author: dlepow
6
6
ms.service: api-management
7
7
ms.custom: devx-track-azurecli
8
8
ms.topic: how-to
9
-
ms.date: 04/17/2023
9
+
ms.date: 07/31/2023
10
10
ms.author: danlep
11
11
---
12
12
@@ -22,7 +22,7 @@ For more information about the `stv1` and `stv2` platforms and the benefits of u
22
22
23
23
> [!IMPORTANT]
24
24
> * Migration is a long-running operation. Your instance will experience downtime during the last 10-15 minutes of migration. Plan your migration accordingly.
25
-
> * The VIP address(es) of your API Management will change if you're using scenario 2 mentioned below (service injected in a VNET). For scenario 1 (not injected in a VNET), the VIP will temporarily change during migration for up to 15 minutes, but the original VIP of the service will be restored at the end of the migration operation.
25
+
> * The VIP address(es) of your API Management will change if you're using scenario 2 mentioned below (service injected in a VNet). For scenario 1 (not injected in a VNet), the VIP will temporarily change during migration for up to 15 minutes, but the original VIP of the service will be restored at the end of the migration operation.
26
26
> * Migration to `stv2` is not reversible.
27
27
28
28
> [!IMPORTANT]
@@ -67,20 +67,22 @@ az rest --method post --uri "$APIM_RESOURCE_ID/migrateToStv2?api-version=2022-08
67
67
68
68
## Scenario 2: Migrate a network-injected API Management instance
69
69
70
-
Trigger migration of a network-injected API Management instance to the `stv2` platform by updating the existing network configuration (see the following section). You can also migrate to the `stv2` platform by enabling [zone redundancy](../reliability/migrate-api-mgt.md).
70
+
Trigger migration of a network-injected API Management instance to the `stv2` platform by updating the existing network configuration to use new network settings (see the following section). After that update completes, as an optional step, you may migrate back to the original VNet and subnet you used.
71
+
72
+
You can also migrate to the `stv2` platform by enabling [zone redundancy](../reliability/migrate-api-mgt.md).
71
73
72
74
### Update VNet configuration
73
75
74
76
Update the configuration of the VNet in each location (region) where the API Management instance is deployed.
75
77
76
78
#### Prerequisites
77
79
78
-
* A new subnet in the current virtual network. (Alternatively, set up a subnet in a different virtual network in the same region and subscription as your API Management instance). A network security group must be attached to the subnet.
80
+
* A new subnet in the current virtual network. (Alternatively, set up a subnet in a different virtual network in the same region and subscription as your API Management instance). A network security group must be attached to the subnet, and [NSG rules](api-management-using-with-vnet.md#configure-nsg-rules) for API Management must be configured.
79
81
80
82
* A Standard SKU [public IPv4 address](../virtual-network/ip-services/public-ip-addresses.md#sku) resource in the same region and subscription as your API Management instance.
81
83
82
84
> [!IMPORTANT]
83
-
> When you update the VNet configuration for migration to the `stv2` platform, you must provide a public IP address address resource, or migration won't succeed. In an internal VNet, this public IP address is used only for management operations.
85
+
> When you update the VNet configuration for migration to the `stv2` platform, you must provide a public IP address address resource, or migration won't succeed. In internal VNet mode, this public IP address is used only for management operations.
84
86
85
87
For details, see [Prerequisites for network connections](api-management-using-with-vnet.md#prerequisites).
86
88
@@ -97,6 +99,24 @@ To update the existing external or internal VNet configuration:
97
99
98
100
The virtual network configuration is updated, and the instance is migrated to the `stv2` platform.
99
101
102
+
### (Optional) Migrate back to original VNet and subnet
103
+
104
+
You may optionally migrate back to the original VNet and subnet you used in each region before migration to the `stv2` platform. To do so, update the VNet configuration again, this time specifying the original VNet and subnet. As in the preceding migration, expect a long-running operation, and expect the VIP address to change.
105
+
106
+
#### Prerequisites
107
+
108
+
* The original subnet and VNet. A network security group must be attached to the subnet, and [NSG rules](api-management-using-with-vnet.md#configure-nsg-rules) for API Management must be configured.
109
+
110
+
* A new Standard SKU [public IPv4 address](../virtual-network/ip-services/public-ip-addresses.md#sku) resource in the same region and subscription as your API Management instance.
111
+
112
+
113
+
#### Update VNet configuration
114
+
115
+
1. In the [portal](https://portal.azure.com), navigate to your original VNet.
116
+
1. In the left menu, select **Subnets**, and then the original subnet.
117
+
1. Verify that the original IP addresses were released by API Management. Under **Available IPs**, note the number of IP addresses available in the subnet. All addresses (except for Azure reserved addresses) should be available. If necessary, wait for IP addresses to be released.
118
+
1. Repeat the migration steps in the preceding section. In each region, specify the original VNet and subnet, and a new IP address resource.
119
+
100
120
## Verify migration
101
121
102
122
To verify that the migration was successful, check the [platform version](compute-infrastructure.md#how-do-i-know-which-platform-hosts-my-api-management-instance) of your API Management instance. After successful migration, the value is `stv2`.
0 commit comments