issue with external api service provided request.

Shanmugam Tummuru 0 Reputation points
2025-11-17T19:44:39.8666667+00:00

We are facing an issue with the external API service provider. When we attempt to generate the WEBGUID using the following API URL: https://revpay.ebs-rcm.com/BankPay/interface/WEBGUID , along with the provided client ID and client key, we are getting a 403 Forbidden error in response. However, when we deploy and test the same configuration on a VM running IIS, we receive a successful response.

We have already whitelisted both the Application Gateway's IP and the App Service's IP in the external service provider's network, but the issue persists. We need assistance in resolving this problem.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-17T19:45:10.65+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The 403 Forbidden error you are encountering when using the external API service could be due to several reasons, especially since you mentioned that it works fine on a VM running IIS. Here are some troubleshooting steps you can consider:

    1. IP Filtering: Ensure that the external API service does not have IP filtering rules that might be blocking requests from your Azure App Service. Even though you have whitelisted the IPs, double-check that the correct IPs are being used and that there are no additional restrictions.
    2. Access Restrictions: Check if there are any access restriction policies implemented in your Azure environment that might prevent the App Service from making outbound calls to the API. This can include settings in the Application Gateway or any firewall rules.
    3. Request Headers: Sometimes, the headers sent by the App Service may differ from those sent by the IIS server. Ensure that the request headers (like User-Agent, Content-Type, etc.) are consistent between the two environments.
    4. Rate Limiting: Verify if the external API has any rate limiting in place that might be causing the 403 error after a certain number of requests.
    5. Debugging Logs: Utilize logging features in Azure to capture detailed logs of the requests made from the App Service. This can help identify if there are any specific errors or issues in the request being sent.

    If the issue persists after checking these aspects, consider reaching out to the external API provider for further assistance, as they may have more insight into why requests from your Azure App Service are being rejected.


    References:

    0 comments No comments

  2. Vimal Lalani 2,400 Reputation points Microsoft External Staff Moderator
    2025-12-02T21:49:15.8533333+00:00

    Hi @Shanmugam Tummuru

    From your description, you are trying to generate a WEBGUID using the external API endpoint https://revpay.ebs-rcm.com/BankPay/interface/WEBGUID with the provided client ID and client key. When calling this API from Azure App Service, you are receiving a 403 Forbidden error, but the same configuration works correctly when deployed on a VM running IIS. You also mentioned that both the Application Gateway IP and the App Service IP have been whitelisted by the external provider.

    This behavior usually indicates that the external service is still not seeing the correct outbound IP from your App Service. Azure App Service does not use a single static outbound IP; instead, it can use any outbound IP address assigned to the App Service plan. If all of these IP addresses are not whitelisted, the external API provider may block the request, which results in a 403 error.

    As a suggestion you need to whitelist all outbound IP addresses of your Web App. You can find them by navigating to: App Service → Overview → Outbound IP Addresses

    User's image

    Official Microsoft documentation for reference:

    Feel free to post back if you need any further assistance.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.