I'm trying to IaC my API Gateway using Terraform. I did all configurations normally, such as backend, products and policies. But reading the documentation, I didn't find any way to set a Tag to API, only create a new one.
resource "azurerm_api_management_api" "test" {
name = "test*******"
display_name = "Test*******"
api_management_name = data.azurerm_api_management.example.name
resource_group_name = data.azurerm_api_management.example.resource_group_name
revision = "1"
protocols = ["https"]
subscription_required = true
path = "test****"
subscription_key_parameter_names {
header = "Ocp-Apim-Subscription-Key"
query = "subscription-key"
}
}
Am I missing something? Does Terraform support this feature? Is it better to use ARM templates or Powershell in this case?