I’ve created Azure API Managment with terraform. Now I read that Microsoft is retiring stv1 in 2024. I’m wondering why my API Management instances that were created mid 2022 do not have stv2 as default?
Is there a way to tell AzureRM Provider which Azure Rest API it should use ?
2
Answers
The following image explains what is implemented on the Rest API page. In my case, I did not specify a public_ip_address_id or zones in terraform. Unfortunately the provider didn't indicate this somehow and the parameter is also optional. https://techcommunity.microsoft.com/t5/azure-paas-blog/compute-platform-versions-for-azure-api-management-service/ba-p/2836971
As mentioned in this terraform documentation, using the same sample and provider the
azurerm provider version 3.0.0
.We have created an APIM instance(of developer sku). Post the creation we are able to see the platform version value as stv2 as shown in the below image here.
If you are using the
azurerm provider version 3.0.0
also if you are facing the issue I would suggest you create the API management instance usingazapi
provider.Refer to this documentation for more information on how to create APIM instance using
azapi provider
and also you can specify the specific resource provider api version in azapi provider.