Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 2.43 KB

cdn-rules-engine-reference-conditional-expressions.md

File metadata and controls

44 lines (36 loc) · 2.43 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.workload ms.tgt_pltfrm ms.devlang ms.topic ms.date ms.author
Azure CDN rules engine conditional expressions | Microsoft Docs
Reference documentation for Azure CDN rules engine match conditions and features.
cdn
Lichard
akucer
669ef140-a6dd-4b62-9b9d-3f375a14215e
cdn
media
na
na
article
01/23/2017
rli

Azure CDN rules engine conditional expressions

This topic lists detailed descriptions of the Conditional Expressions for Azure Content Delivery Network (CDN) Rules Engine.

The first part of a rule is the Conditional Expression.

Conditional Expression Description
IF An IF expression is always a part of the first statement in a rule. Like all other conditional expressions, this IF statement must be associated with a match. If no additional conditional expressions are defined, then this match determines the criterion that must be met before a set of features may be applied to a request.
AND IF An AND IF expression may only be added after the following types of conditional expressions:IF,AND IF. It indicates that there is another condition that must be met for the initial IF statement.
ELSE IF An ELSE IF expression specifies an alternative condition that must be met before a set of features specific to this ELSE IF statement takes place. The presence of an ELSE IF statement indicates the end of the previous statement. The only conditional expression that may be placed after an ELSE IF statement is another ELSE IF statement. This means that an ELSE IF statement may only be used to specify a single additional condition that has to be met.

Example: CDN match condition

Tip

A subsequent rule may override the actions specified by a previous rule. Example: A catch-all rule secures all requests via Token-Based Authentication. Another rule may be created directly below it to make an exception for certain types of requests.

Next steps