Azure Firewall - URL matching

Peter Stieber 180 Reputation points
2025-07-13T16:55:27.0233333+00:00

Does www.contoso.com in targetUrl match www.contoso.com/?siteId=asd343s32kj343dce ?

Documentation mentions that it should match below examples

www.contoso.com

www.contoso.com/

The doc also mentions that

www.contoso.com/test

should match www.contoso.com/test?with_query=1

Can someone clarify ?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 8,760 Reputation points Microsoft External Staff Moderator
    2025-07-21T08:22:48.29+00:00

    Hello Peter Stieber

    Thanks for the reply!

    As per the documentation,

    User's image

    www.contoso.com/test matches www.contoso.com/test?with_query=1.

    The path /test is the primary factor for matching, and query parameters (like ?with_query=1) do not affect the match.

    But,

    User's image


    Query parameters are not considered in the matching process for the base URL. Therefore, www.contoso.com/?siteabcabcabc does not match www.contoso.com or www.contoso.com/ because the presence of the query parameter changes the URL.


    I hope this has been helpful!

    If the above is unclear or you are unsure about something, please add a comment below.


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.