stephaneey / azure-apim-extension

Full Azure API Management suite and more VSTS extension
MIT License
66 stars 49 forks source link

Allow the `API Management - Set or update an operation policy` task to consume operations from a previous task #122

Open orty opened 2 years ago

orty commented 2 years ago

Hi,

I am currently implementing your extension in our DevOps pipeline for an Azure Function behind an APIM service. Most specifically, I really enjoyed the ability to consume a data contract from a Swagger endpoint, and my process is now to

It does the job up to 95%, but the resulting API operations lose their link to the Azure Function, and it is definitely a breaking change for us if we chose to go with your extension. I am currently working on a proposal for an update though, using the API Management - Create or update an operation policy task. The idea would be to use it to override the policies for all the operations previously created/updated, and thus restoring their link to the Azure Function.

My proposal is to add a setting similar to Product created by previous task but that would be called Operation(s) created by previous task and it would auto-fill the API and Operation inputs.

I am running some tests, I should be able to issue the Pull Request in the next days.

Thanks again for your great work on this extension !