How to solve the 403 Forbidden error from a Azure Function when it is called from a Logic App

When calling an Azure Function from a Logic App, you might encounter a 403 Forbidden error with the response header x-ms-forbidden-ip. This happens when the Function’s networking rules block the IP address or the subnet of the Logic App.

The Solution

To resolve this issue:

  1. Go to your Azure Function’s configuration
  2. Navigate to the Networking section
  3. Click on the Public network access option
  4. Add a new Access rule to allow the Logic App’s IP or subnet
  5. Save your changes

Add a new Access rule in the Networking of an Azure Function

After adding the appropriate access rule, rerun your Logic App and the 403 Forbidden error should be resolved. The Logic App is now able to call your Function successfully.

comments powered by Disqus