how to incorporate individual policies for different operations inside a single API in an APIM

84017655 41 Reputation points
2025-03-07T06:39:25.87+00:00

I have a task to set individual policies for different operations in an API in API Management Instance. Currently, we are manually adding policies for different operations from the Azure Portal. But my task is to set individual policies for different operations using Bicep.

I searched for a solution and found a document on Stack overflow, but It is not answering my question:

https://stackoverflow.com/questions/75104897/how-do-i-apply-a-policy-from-azure-api-management-service-to-azure-app-service-r

I could not find any solution in the official mslearn documentation.

Kindly propose a solution and confirm whether I have to keep multiple allOperationsPolicy.xml files in my repo to achieve this.

Also, initiate a private conversation where I can share existing bicep for more clarity.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,322 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.