How to perform Jmeter Load testing on Application Gateway URL

Satyam Chauhan 547 Reputation points
2023-09-06T14:01:01.1+00:00

Hi,

I have an application gateway with WAF, having the backend as a web application deployed on an app service. To access the application I am using the public IP of the application gateway. Also we have enabled restriction on the access of the application by whitelisting my System's IP in the application gateway, which is working fine.

So whoever's IP is whitelisted they are able to access the application. But from the same machine when I am trying to perform load testing on the application it gives 403 forbidden, blocked by app-gateway-v2.
I have tried providing explicitly my IP in source IP address of Jmeter but then it gives error - Uncaught java exception, unable to bind IP 192.xx.xx.xx.

Please help how can I perform load testing using Jmeter on the application that is behind the app-gateway having IP restrictions.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,045 questions
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 25,611 Reputation points Microsoft Employee
    2023-09-07T00:41:27.4733333+00:00

    @Satyam Chauhan

    Thank you for reaching out.

    For this scenario below

    But from the same machine when I am trying to perform load testing on the application it gives 403 forbidden, blocked by app-gateway-v2.

    Can you check the firewall log for you Application Gateway? and see what the client IP is when you get the 403 error. I wonder if JMeter is appending the client IP or if the WAF is blocking the request due to any other reason. Thanks

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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