Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to set API Management Policies using the azurerm_api_management resource #3075

Closed
maniSbindra opened this issue Mar 19, 2019 · 3 comments

Comments

@maniSbindra
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Currently it is not possible to set API Management Policies (Microsoft.ApiManagement service/apis/operations/policies : https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2018-06-01-preview/service/apis/operations/policies) using azurerm_api_management resource .

The way to set these polices using ARM Template is using the resource type "Microsoft.ApiManagement/service/apis/operations/policies", and setting the properties.policyContent, and properties.contentFormat values.

One of the work arounds to get this working using terraform is to use the terraform azurerm_template_deployment resource.

It will be great if the API management policies can be set using terraform resource and attributes (policy_content and content_format).

New or Affected Resource(s)

  • azurerm_api_management

Potential Terraform Configuration

content_format = "xml"
policy_content = "<policy content in xml>...."

References

@tombuildsstuff
Copy link
Contributor

hey @maniSbindra

Thanks for opening this issue :)

We've got a meta issue open tracking support for new API Management resources here:
#1177 (comment) which includes support for API Management Policies (which will be their own resource); rather than having multiple issues open tracking the same thing I'm going to close this in favour of #1177 - would you mind subscribing to that for updates?

Thanks!

@maniSbindra
Copy link
Contributor Author

Thanks @tombuildsstuff

@ghost
Copy link

ghost commented Apr 18, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants