Managing Azure APIM Operation Policies in Terraform by Importing OpenAPI Specification
When using Terraform to import an OpenAPI/Swagger definition into Azure API Management (APIM), the API and its operations are created successfully. However, one subtle behavior can cause confusion when trying to manage operation-level policies declaratively. This post explains the issue and a simple workaround. The Scenario I was importing my API using Terraform: Swagger/OpenAPI definition imported into APIM API created successfully All operations appeared correctly in Azure Later, I wanted to attach operation-level policies using Terraform using azurerm_api_management_api_operation_policy ...