title: How to configure Azure Function access restrictions to allow for testing via portal
body: <p>I've got my Azure function app set to restrict access to just the APIM public IP and my desktop IP. I seem though to be unable to test the function within the portal itself (i.e. going to MyFunctionAppName &gt; TestFunction &gt; Code + Test &gt; Test/Run) as I get an error saying &quot;You must have direct network access in order to run your function. Your app may be restricted with Private Endpoints, Access Restrictions or Service Endpoints.&quot; I'm not sure if there's an IP I need to add or something else to let me test via the portal itself.</p>