azureazure-functionsazure-api-management

After importing an Azure Function app into API Management service, how do I view/edit the policy adding the generated host key authorizing calls?


I have imported an Azure Function app into Azure API Management service, which automatically generates a host key on the Function app for authorizing calls against it.

I would like to inspect the associated policy (if one exists) and edit it, but I can't find it anywhere - it's not shown in "Policy fragments".

How can I view/edit the policy that adds the generated function key to calls against the Function app?

enter image description here

enter image description here


Solution

  • enter image description here

    <policies>
        <inbound>
            <base />
            <set-backend-service id="apim-generated-policy" backend-id="afreeen-fa" />
        </inbound>
        <backend>
            <base />
        </backend>
        <outbound>
            <base />
        </outbound>
        <on-error>
            <base />
        </on-error>
    </policies>
    

    enter image description here

    enter image description here

    enter image description here