Skip to content

Commit d27fb8b

Browse files
authored
Merge pull request #223512 from dlepow/migstv2
[APIM] Migration from stv1 to stv2
2 parents ffde378 + 245853f commit d27fb8b

File tree

5 files changed

+133
-56
lines changed

5 files changed

+133
-56
lines changed

articles/api-management/TOC.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
- name: Observability
9292
href: observability.md
9393
displayName: monitoring
94+
- name: Compute platform
95+
href: compute-infrastructure.md
96+
displayName: stv1, stv2
9497
- name: DevOps and CI/CD
9598
href: devops-api-development-templates.md
9699
- name: APIs
@@ -152,6 +155,8 @@
152155
- name: Recover a deleted instance
153156
displayName: soft delete
154157
href: soft-delete.md
158+
- name: Migrate to stv2 platform
159+
href: migrate-stv1-to-stv2.md
155160
- name: Configure networking
156161
items:
157162
- name: Connect to a virtual network

articles/api-management/breaking-changes/stv1-platform-retirement-august-2024.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ documentationcenter: ''
66
author: dlepow
77
ms.service: api-management
88
ms.topic: reference
9-
ms.date: 08/26/2022
9+
ms.date: 01/10/2023
1010
ms.author: danlep
1111
---
1212

@@ -40,7 +40,7 @@ After 31 August 2024, any instance hosted on the `stv1` platform won't be suppor
4040

4141
**Migrate all your existing instances hosted on the `stv1` compute platform to the `stv2` compute platform by 31 August 2024.**
4242

43-
If you have existing instances hosted on the `stv1` platform, you can follow our [migration guide](../compute-infrastructure.md#how-do-i-migrate-to-the-stv2-platform) which provides all the details to ensure a successful migration.
43+
If you have existing instances hosted on the `stv1` platform, you can follow our [migration guide](../migrate-stv1-to-stv2.md) which provides all the details to ensure a successful migration.
4444

4545
## Help and support
4646

Lines changed: 22 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Azure API Management compute platform
3-
description: Learn about the compute platform used to host your API Management service instance
3+
description: Learn about the compute platform used to host your API Management service instance. Instances in the dedicated service tiers of API Management are hosted on the stv1 or stv2 compute platform.
44
author: dlepow
55
ms.service: api-management
66
ms.topic: conceptual
7-
ms.date: 03/16/2022
7+
ms.date: 04/17/2023
88
ms.author: danlep
99
ms.custom:
1010
---
@@ -14,85 +14,53 @@ As a cloud platform-as-a-service (PaaS), Azure API Management abstracts many det
1414

1515
To enhance service capabilities, we're upgrading the API Management compute platform version - the Azure compute resources that host the service - for instances in several [service tiers](api-management-features.md). This article gives you context about the upgrade and the major versions of API Management's compute platform: `stv1` and `stv2`.
1616

17-
We've minimized impacts of this upgrade on your operation of your API Management instance. Upgrades are managed by the platform, and new instances created in service tiers other than the Consumption tier are mostly hosted on the `stv2` platform. However, for existing instances hosted on the `stv1` platform, you have options to trigger migration to the `stv2` platform.
17+
Most new instances created in service tiers other than the Consumption tier are hosted on the `stv2` platform. However, for existing instances hosted on the `stv1` platform, you have options to migrate to the `stv2` platform.
1818

1919
## What are the compute platforms for API Management?
2020

2121
The following table summarizes the compute platforms currently used for instances in the different API Management service tiers.
2222

2323
| Version | Description | Architecture | Tiers |
2424
| -------| ----------| ----------- | ---- |
25-
| `stv2` | Single-tenant v2 | Azure-allocated compute infrastructure that supports availability zones, private endpoints | Developer, Basic, Standard, Premium<sup>1</sup> |
25+
| `stv2` | Single-tenant v2 | Azure-allocated compute infrastructure that supports added resiliency and security features. See [What are the benefits of the `stv2` platform?](#what-are-the-benefits-of-the-stv2-platform) in this article. | Developer, Basic, Standard, Premium<sup>1</sup> |
2626
| `stv1` | Single-tenant v1 | Azure-allocated compute infrastructure | Developer, Basic, Standard, Premium |
2727
| `mtv1` | Multi-tenant v1 | Shared infrastructure that supports native autoscaling and scaling down to zero in times of no traffic | Consumption |
2828

29-
<sup>1</sup> Newly created instances in these tiers, created using the Azure portal or specifying API version 2021-01-01-preview or later. Includes some existing instances in Developer and Premium tiers configured with virtual networks or availability zones.
29+
<sup>1</sup> Newly created instances in these tiers and some existing instances in Developer and Premium tiers configured with virtual networks or availability zones.
3030

3131
> [!NOTE]
3232
> Currently, the `stv2` platform isn't available in the US Government cloud or in the following Azure regions: China East, China East 2, China North, China North 2.
3333
3434
## How do I know which platform hosts my API Management instance?
3535

36-
Starting with API version `2021-04-01-preview`, the API Management instance exposes a read-only `platformVersion` property that shows this platform information.
36+
Starting with API version `2021-04-01-preview`, the API Management instance exposes a read-only `platformVersion` property with this platform information.
3737

38-
You can find this information using the portal or the API Management [REST API](/rest/api/apimanagement/current-ga/api-management-service/get).
38+
You can find the platform version of your instance using the portal, the API Management [REST API](/rest/api/apimanagement/current-ga/api-management-service/get), or other Azure tools.
3939

40-
To find the `platformVersion` property in the portal:
40+
To find the platform version in the portal:
4141

42-
1. Go to your API Management instance.
43-
1. On the **Overview** page, select **JSON view**.
44-
1. In **API version**, select a current version such as `2021-08-01` or later.
45-
1. In the JSON view, scroll down to find the `platformVersion` property.
42+
1. Sign in to the [portal](https://portal.azure.com) and go to your API Management instance.
43+
1. On the **Overview** page, under **Essentials**, the **Platform Version** is displayed.
4644

47-
:::image type="content" source="media/compute-infrastructure/platformversion-property.png" alt-text="platformVersion property in JSON view":::
45+
:::image type="content" source="media/compute-infrastructure/platformversion-property.png" alt-text="Screenshot of the API Management platform version in the portal.":::
4846

49-
## How do I migrate to the `stv2` platform?
50-
51-
The following table summarizes migration options for instances in the different API Management service tiers that are currently hosted on the `stv1` platform. See the linked documentation for detailed steps.
52-
53-
> [!NOTE]
54-
> Check the [`platformVersion` property](#how-do-i-know-which-platform-hosts-my-api-management-instance) before starting migration, and after your configuration change.
55-
56-
|Tier |Migration options |
57-
|---------|---------|
58-
|Premium | 1. Enable [zone redundancy](../reliability/migrate-api-mgt.md)<br/> -or-<br/> 2. Create new [external](api-management-using-with-vnet.md) or [internal](api-management-using-with-internal-vnet.md) VNet connection<sup>1</sup><br/> -or-<br/> 3. Update existing [VNet configuration](#update-vnet-configuration) |
59-
|Developer | 1. Create new [external](api-management-using-with-vnet.md) or [internal](api-management-using-with-internal-vnet.md) VNet connection<sup>1</sup><br/>-or-<br/> 2. Update existing [VNet configuration](#update-vnet-configuration) |
60-
| Standard | 1. [Change your service tier](upgrade-and-scale.md#change-your-api-management-service-tier) (downgrade to Developer or upgrade to Premium). Follow migration options in new tier.<br/>-or-<br/>2. Deploy new instance in existing tier and migrate configurations<sup>2</sup> |
61-
| Basic | 1. [Change your service tier](upgrade-and-scale.md#change-your-api-management-service-tier) (downgrade to Developer or upgrade to Premium). Follow migration options in new tier<br/>-or-<br/>2. Deploy new instance in existing tier and migrate configurations<sup>2</sup> |
62-
| Consumption | Not applicable |
63-
64-
<sup>1</sup> Use Azure portal or specify API version 2021-01-01-preview or later.
65-
66-
<sup>2</sup> Migrate configurations with the following mechanisms: [Backup and restore](api-management-howto-disaster-recovery-backup-restore.md), [Migration script for the developer portal](automate-portal-deployments.md), [APIOps with Azure API Management](/azure/architecture/example-scenario/devops/automated-api-deployments-apiops).
67-
68-
## Update VNet configuration
47+
## What are the benefits of the `stv2` platform?
6948

70-
If you have an existing Developer or Premium tier instance that's connected to a virtual network and hosted on the `stv1` platform, trigger migration to the `stv2` platform by updating the VNet configuration.
49+
The `stv2` platform infrastructure supports several resiliency and security features of API Management that aren't available on the `stv1` platform, including:
7150

72-
### Prerequisites
51+
* [Availability zones](zone-redundancy.md)
52+
* [Private endpoints](private-endpoint.md)
53+
* [Protection with Azure DDoS](protect-with-ddos-protection.md)
7354

74-
* A new or existing virtual network and subnet in the same region and subscription as your API Management instance. The subnet must be different from the one currently used for the instance hosted on the `stv1` platform, and a network security group must be attached.
7555

76-
* A new or existing 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.
77-
78-
To update the existing external or internal VNet configuration using the portal:
79-
80-
1. Navigate to your API Management instance.
81-
1. In the left menu, select **Network** > **Virtual network**.
82-
1. Select the network connection in the location you want to update.
83-
1. Select the virtual network, subnet, and IP address resources you want to configure, and select **Apply**.
84-
1. Continue configuring VNet settings for the remaining locations of your API Management instance.
85-
1. In the top navigation bar, select **Save**, then select **Apply network configuration**.
86-
87-
The virtual network configuration is updated, and the instance is migrated to the `stv2` platform. Confirm migration by checking the [`platformVersion` property](#how-do-i-know-which-platform-hosts-my-api-management-instance).
56+
## How do I migrate to the `stv2` platform?
8857

89-
> [!NOTE]
90-
> * Updating the VNet configuration takes from 15 to 45 minutes to complete.
91-
> * The VIP address(es) of your API Management instance will change.
58+
> [!IMPORTANT]
59+
> Support for API Management instances hosted on the `stv1` platform will be [retired by 31 August 2024](breaking-changes/stv1-platform-retirement-august-2024.md). To ensure proper operation of your API Management instance, you should migrate any instance hosted on the `stv1` platform to `stv2` before that date.
9260
61+
Migration steps depend on features enabled in your API Management instance. If the instance isn't injected in a VNet, you can use a migration API. For instances that are VNet-injected, follow manual steps. For details, see the [migration guide](migrate-stv1-to-stv2.md).
9362

9463
## Next steps
9564

96-
* Learn more about using a [virtual network](virtual-network-concepts.md) with API Management.
97-
* Learn more about enabling [availability zones](../reliability/migrate-api-mgt.md).
98-
65+
* [Migrate an API Management instance to the stv2 platform](migrate-stv1-to-stv2.md).
66+
* Learn more about [upcoming breaking changes](breaking-changes/overview.md) in API Management.
-46.4 KB
Loading
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
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.
4+
5+
author: dlepow
6+
ms.service: api-management
7+
ms.topic: how-to
8+
ms.date: 04/17/2023
9+
ms.author: danlep
10+
11+
---
12+
13+
# Migrate an API Management instance hosted on the stv1 platform to stv2
14+
15+
You can migrate an API Management instance hosted on the `stv1` compute platform to the `stv2` platform. This article provides migration steps for two scenarios, depending on whether or not your API Management instance is currently deployed (injected) in an [external](api-management-using-with-vnet.md) or [internal](api-management-using-with-internal-vnet.md) VNet.
16+
17+
* **Non-VNet-injected API Management instance** - Use the [Migrate to stv2](/rest/api/apimanagement/current-ga/api-management-service/migratetostv2) REST API
18+
19+
* **VNet-injected API Management instance** - Manually update the VNet configuration settings
20+
21+
For more information about the `stv1` and `stv2` platforms and the benefits of using the `stv2` platform, see [Compute platform for API Management](compute-infrastructure.md).
22+
23+
> [!IMPORTANT]
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.
26+
> * Migration to `stv2` is not reversible.
27+
28+
> [!IMPORTANT]
29+
> Support for API Management instances hosted on the `stv1` platform will be [retired by 31 August 2024](breaking-changes/stv1-platform-retirement-august-2024.md). To ensure proper operation of your API Management instance, you should migrate any instance hosted on the `stv1` platform to `stv2` before that date.
30+
31+
[!INCLUDE [api-management-availability-premium-dev-standard-basic](../../includes/api-management-availability-premium-dev-standard-basic.md)]
32+
33+
## Prerequisites
34+
35+
* An API Management instance hosted on the `stv1` compute platform. To confirm that your instance is hosted on the `stv1` platform, see [How do I know which platform hosts my API Management instance?](compute-infrastructure.md#how-do-i-know-which-platform-hosts-my-api-management-instance).
36+
37+
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](~/articles/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
38+
39+
## Scenario 1: Migrate API Management instance, not injected in a VNet
40+
41+
For an API Management instance that's not deployed in a VNet, invoke the Migrate to `stv2` REST API. For example, run the following Azure CLI commands, setting variables where indicated with the name of your API Management instance and the name of the resource group in which it was created.
42+
43+
> [!NOTE]
44+
> The Migrate to `stv2` REST API is available starting in API Management REST API version `2022-04-01-preview`.
45+
46+
47+
```azurecli
48+
# Verify currently selected subscription
49+
az account show
50+
51+
# View other available subscriptions
52+
az account list --output table
53+
54+
# Set correct subscription, if needed
55+
az account set --subscription {your subscription ID}
56+
57+
# Update these variables with the name and resource group of your API Management instance
58+
APIM_NAME={name of your API Management instance}
59+
RG_NAME={name of your resource group}
60+
61+
# Get resource ID of API Management instance
62+
APIM_RESOURCE_ID=$(az apim show --name $APIM_NAME --resource-group $RG_NAME --query id --output tsv)
63+
64+
# Call REST API to migrate to stv2
65+
az rest --method post --uri "$APIM_RESOURCE_ID/migrateToStv2?api-version=2022-08-01"
66+
```
67+
68+
## Scenario 2: Migrate a network-injected API Management instance
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 cause migrate to the `stv2` platform by enabling [zone redundancy](../reliability/migrate-api-mgt.md).
71+
72+
### Update VNet configuration
73+
74+
Update the configuration of the VNet in each location (region) where the API Management instance is deployed.
75+
76+
#### Prerequisites
77+
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.
79+
80+
* 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+
82+
For details, see [Prerequisites for network connections](api-management-using-with-vnet.md#prerequisites).
83+
84+
#### Update VNet configuration
85+
86+
To update the existing external or internal VNet configuration:
87+
88+
1. In the [portal](https://portal.azure.com), navigate to your API Management instance.
89+
1. In the left menu, select **Network** > **Virtual network**.
90+
1. Select the network connection in the location you want to update.
91+
1. Select the virtual network, subnet, and IP address resources you want to configure, and select **Apply**.
92+
1. Continue configuring VNet settings for the remaining locations of your API Management instance.
93+
1. In the top navigation bar, select **Save**, then select **Apply network configuration**.
94+
95+
The virtual network configuration is updated, and the instance is migrated to the `stv2` platform.
96+
97+
## Verify migration
98+
99+
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`.
100+
101+
## Next steps
102+
103+
* Learn about [stv1 platform retirement](breaking-changes/stv1-platform-retirement-august-2024.md).
104+
* For instances deployed in a VNet, see the [Virtual network configuration reference](virtual-network-reference.md).

0 commit comments

Comments
 (0)