Search code examples
linuxazureazure-web-app-serviceazure-linux

azure linux web app whitelist IP gets 401 error


Our website is hosted on the Azure Linux web app, the site pulls data from third-party vendors. So we need to whitelist our website IP address to their server but after adding the IP for whitelisting still getting 401 unauthorized errors.

We checked the vendor and the IP has been configured properly but why we are getting 401 errors while pulling data via API call.

The IP address we found from Azure Portal --> web app --> select properties and the virtual IP address.

Any help or recommendation will be helpful.


Solution

  • Using a static IP address solved the problem.