@Amit Singh Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
In the above screenshot, the error message IpForbidden means when the devOps agent is trying to connect to function app and it is failing this might be due to the access restrictions that were enabled.
I would suggest you check whether does your function app is configured with any access restrictions or not? If yes, check whether you have allowed the Azure devOps agent to communicate with function app.
If you are using Microsoft Agent and you are allowing Azure devops as service tag in access restriction, then this is an expected behavior. As mentioned in this documentation Microsoft-hosted agents can't be listed by service tags. If you're trying to grant hosted agents access to your resources, you'll need to follow the IP range allow listing method.
One Workaround is to whitelist all the Ip's depend on the region in which Geo location your project is present and also note that these Ip's will get changed/Updated weekly.
Refer to this similar issue in the Stack Overflow here.
Feel free back to reach back to me if you have any further