Invoke-RestMethod Time out

We are running ours in an Azure App service but are running into an odd issue where if we make a call to one of our Azure functions that take longer than 2-3 minutes; we are getting a timeout error on the dashboard and it will just hang. Our larger customers require 5-6 minutes for this job to process.

We attempted to modify the web.config with the timeout variable to no avail.