-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 and azurerm_api_management_api_operation_policy throwing plugin error #14869
Comments
This was working fine until v2.88.0. The issue has started appearing since 2.90.0 |
The panic was caused by type cast for According to rest-api spec, the value field could be a string or an object. |
But I have not used |
Hi @raswinraaj , the whole |
…lue`'s type, if we're facing a map[string]interface{}, then we use json marshal to convert it into string. And we added extra pluginsdk.SuppressJsonDiff to the schema to suppress any json format diff.
#14707 is a duplicate |
Thanks for taking the time to submit this issue. It looks like this has been resolved as of #14848. As such, I am going to mark this issue as closed. |
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. |
Community Note
Terraform (and AzureRM Provider) Version
terraform version : v1.0.1
azurerm version : v2.91.0
Affected Resource(s)
azurerm_api_management_api_operation
azurerm_api_management_api_operation_policy
Terraform Configuration Files
Debug Output
https://gist.github.com/raswinraaj/d1b0bdfbe382142625529e5013eba499
Panic Output
Expected Behaviour
Create Policy on the API operation
Actual Behaviour
The Operation gets created in the APIM even though it throws an error on terraform cli. But the policy creation fails.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: