An Azure service that provides a hybrid, multi-cloud management platform for APIs.
@ujjwalDev Even if a subscription isn't required, when passed it is still parsed. So, you could use the choose statement to decide based on the header set like below
<choose>
<when condition="@(context.Subscription?.Name != null)">
<!-- Subscription ID was present -->
</when>
<when condition="@(!String.IsNullOrWhiteSpace(context.Request.Headers.GetValueOrDefault("Authorization", "")))">
<!-- Authorization Header was present -->
</when>
<otherwise>
<!-- Neither was present -->
</otherwise>
</choose>