Setup Policy to Azure API Operations

Q

What are steps to set up policy to an Azure API Operation?

✍: FYIcenter.com

A

If you want to add policy statements to be executed between the Azure API and the backend service, you need to setup policy to the Azure API operation as shown in this tutorial:

1. Login to Azure Portal.

2. Go to API Management Services and select your service.

3. Click on Publisher Portal.

4. Click Policies on the left.

5. Select the API service and the API operation from dropdown lists. You see the "ADD POLICY" link in the policy statements area, if there is no policy created to this operation.

6. Click "ADD POLICY" link. You see a default policy XML document showing up.

7. Add policy statements into the policy XML document and save it.

The picture below shows you how to add policy to an Azure API operation:
Add Policy to an Azure API Operation

 

Using Azure API Policy

⇒⇒Microsoft Azure API Management Tutorials

2017-09-23, 117👍, 0💬