I have created an azure http trigger (also tried with timer trigger) function and it is calling an third party API with necessary params as content header. Locally in VS Code (debug mode), it's working fine. I am getting desired response (getting token if we call token end point as well as proper response if we call another end point by passing token). Even with postman I am getting correct response.
But when I deployed this function to azure function app, it's not getting response from both endpoint. (either from token one or if I pass hardcoded token copied from postman to second endpoint).
In logs, I can see function being called and when I am logging response I am getting a large html text(don't know what is that) Is it possible that third party API is blocking or restricting calls from azure function(though it's working locally or with postman if we pass proper values) Tried everything but can' find out the exact issue. I have verified I am passing correct values as grant_type, client_Id, client_secret, username, password, scope)
Have pasted below sample piece of code:
private async Task\