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

azurerm_api_management_api_operation_policy fails with non-encoded policy #5066

Closed
jeanpaulsmit opened this issue Dec 4, 2019 · 2 comments
Closed

Comments

@jeanpaulsmit
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

Terraform (and AzureRM Provider) Version

azurerm 1.37
terraform 0.12.17

Affected Resource(s)

azurerm_api_management_api_operation_policy

Terraform Configuration Files

Expected Behavior

Based on this issue #4140 I expected the policy on operation level (azurerm_api_management_api_operation_policy ) also to be fixed for encoding.
However I get the same error I ran into as described in 4140:
Error creating or updating API Operation Policy: apimanagement.APIOperationPolicyClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ValidationError" Message="One or more fields contain incorrect values:" Details=[{"code":"ValidationError","message":"'My-Custom-HTTP-Header' is an unexpected token. Expecting white space. Line 17, position 75.","target":"representation"}]

I can understand however 4140 fixed this only for azurerm_api_management_api_policy

Actual Behavior

Issue as described in 4140 but for azurerm_api_management_api_operation_policy

Steps to Reproduce

Try to apply an operation level policy to an API using azurerm_api_management_api_operation_policy

@favoretti
Copy link
Collaborator

Since this issue has been reported a long time ago and relates to the version of provider we no longer support - I'm going to close it. Please open a new updated bug report on current versions of terraform and provider if this is still relevant. Thank you.

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2021
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

3 participants