In Azure function app in 'Access restrictions' few Ip address added automatically when we deploy the Azure function from Azure CI/CD pipeline.
I suspect this is causing the 403 forbidden error when we call from the IP address other than the mentioned in IP restrictions.