APIM命名值hello world示例不起作用

时间:2019-06-04 13:23:16

标签: azure azure-api-management

按照下面链接上的示例,我遇到问题。

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties

具体地说,下面的命名值是基于上面的创建的,

ContosoHeader   TrackingId  False   Contoso
ContosoHeaderValue  ••••••••••••••••••••••  True    Contoso

和以下政策:

<policies>
    <inbound>
        <base />
    </inbound>
    <backend>
        <base />
    </backend>
    <outbound>
        <base />
        <set-header name="{{ContosoHeader}}" exists-action="override">
            <value>{{ContosoHeaderValue}}</value>
        </set-header>
    </outbound>
    <on-error>
        <base />
    </on-error>
</policies>

问题是标题没有在标题中生成。

有什么主意吗?

Reusing APIM policy expressions

https://docs.microsoft.com/en-us/azure/api-management/api-management-policy-expressions

0 个答案:

没有答案
相关问题