stephaneey / azure-apim-extension

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

Function API: Access to the path is denied #57

Closed peter-tridius closed 4 years ago

peter-tridius commented 5 years ago

Thank you for such a great DevOps task! I am using the Functions task to register our function with APIM.

I am getting an error right off the bat though. I am getting an "Access To the Path is Denied" exception, pointing to apimfunction.ps1: line 111

It occurs in the log right after "Enabling Swagger for the target function set" and seems to be associated with the scm url.

image

My service principal in DevOps has a Contributor role to the subscription.

stephaneey commented 4 years ago

Hello,

Be sure that you do not have IP restrictions defined on the SCM endpoint. If that's the case, you must use a self-hosted agent that is included in the authorized IP range.

Best Regards