I'm aware that it's possible to create an API Management API Policy using terraform by adding the following two resources:API Management API and API Management API Policy. The issue is that I want to add the policy for "All APIs" (seen in image)
and not for a specific route. I do not see a way to do that through Terraform. I am able to do it through Powershell though. So that leaves me with three thoughts:
- I should just do it through powershell
- I should NOT be using the "All APIs" option in the UI and instead should always explicitly assign the policy to each route. (kind of a pain since connecting Function Apps to APIM is going to auto generate APIs for me)
- I'm missing something and this can be done through Terraform.
I'm looking for an answer to point 3, and open to opinions on point 2.
Thanks