Closed HBCO closed 4 years ago
I found the API method https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/apioperationpolicy/createorupdate
Any ideas to what is going wrong for me?
Problem solved. The issue was that I was typing in the API method name instead of selecting it in the dropdown. This casued the name instead of the id being used and that caused the task to fail.
Hi
First of all, great extension!!
I have an issue regarding the task 'API Management - Set or update an operation policy' which always fails for me with the error Bad Request (The remote server returned an error: (400) Bad Request.) regardless of the actual policy 'payload'. When checking the details the call which fails is : Linking policy to API USING https://management.azure.com/subscriptions/all_our_subs_and_stuff/apis/name_of_api;rev=1/operations/name_of_operation/policies/policy?api-version=2017-03-01
When checking the documentation for the REST API at https://docs.microsoft.com/en-us/rest/api/apimanagement/ it seems like the current version (api-version) is 2019-12-01 and I cannot find any documented method that corresponds to the call being made by the extension.
So my issue is that I cannot set a policy on a specific method. I hope you can help me out or shed some light on this issue. Hopefully I'm just misunderstanding something.
Best regards HBCO