Hello @Pardeep the answer to your questions can be found in this Azure doc: Migrate an API Management instance hosted on the stv1 platform to stv2
Here are some points to bring some clarification to your questions:
- To answer your first question, yes migration with the existing subnet (Internal VNet) is possible. You can migrate your API Management instance from Stv1 to Stv2 while keeping the same internal VNet subnet. This option is available through both the Azure portal and Infrastructure as Code (IaC).
- You can definitely use IaC tools like Azure Resource Manager (ARM) templates or Bicep to automate the migration process. This approach offers greater flexibility and repeatability compared to the Azure portal. While not strictly required, enabling zone redundancy for your existing API Management service will automatically migrate it to Stv2 and place it in availability zones. This can be done through the Azure portal or IaC as well.
- Backing up your API Management service using IaC is currently not possible**.** Like you stated the Azure docs recommends using PowerShell scripts or the REST API for backups. However, you can leverage IaC tools to manage the deployment and configuration of your API Management instance after the migration is complete.
Lastly, we highly recommend for you to migrate your Stv1 API Management instances to Stv2 before August 31, 2024, as Stv1 support will be retired after that date.
Please let us know if you have further questions.
-Grace