Create terraform script for APIM instead of ARM template

Kartik Lohani 1 Reputation point
2021-03-01T17:49:19.933+00:00

I'm using API management services. Now I'm working on the deployment for the same. Using the "extract services" feature, I'm able to generate the ARM template for the APIM but I need the terraform script for the deployment instead of ARM template. Can we generate the terraform script for APIM and include all the API policies which we defined in inbound processing section ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,996 Reputation points Moderator
    2021-03-02T12:56:57.503+00:00

    Hi @Kartik Lohani

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I don't see any way to convert ARM template to terraform script but you can use the ARM template that can be deployed using terraform command resource_group_template_deployment. I don't see any APIM terraform command to achieve this.

    Github Terraform Repository: https://github.com/terraform-providers/terraform-provider-azurerm

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.