Logging 调用TP rom ValidationTechnicalProfile时未记录在AppInsights中的自定义事件

Logging 调用TP rom ValidationTechnicalProfile时未记录在AppInsights中的自定义事件,logging,azure-ad-b2c,azure-ad-b2c-custom-policy,appinsights,Logging,Azure Ad B2c,Azure Ad B2c Custom Policy,Appinsights,我已经添加了技术配置文件以在AppInsights中记录自定义事件,并从登录TP的ValidationTechnicalProfile部分调用了技术配置文件,但这些日志没有记录在AppInsights中。有人能帮我解决这个问题吗 用于登录App Insights的技术配置文件 <TechnicalProfile Id="AppInsights-CustomSigninActiveCheck"> <InputClaims>

我已经添加了技术配置文件以在AppInsights中记录自定义事件,并从登录TP的ValidationTechnicalProfile部分调用了技术配置文件,但这些日志没有记录在AppInsights中。有人能帮我解决这个问题吗

用于登录App Insights的技术配置文件

   <TechnicalProfile Id="AppInsights-CustomSigninActiveCheck">
      <InputClaims>
        <InputClaim ClaimTypeReferenceId="EventType" PartnerClaimType="eventName" DefaultValue="IsActiveStatusCheck" />           
        <InputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="{property:objectId}" DefaultValue="Not Applicable" />
        <InputClaim ClaimTypeReferenceId="signInName" PartnerClaimType="{property:signInName}" DefaultValue="Not Applicable" />
        <InputClaim ClaimTypeReferenceId="isUserActive" />
      </InputClaims>
      <IncludeTechnicalProfile ReferenceId="AppInsights-Common" />
    </TechnicalProfile>

从登录TP调用TP

</OutputClaims>
          <ValidationTechnicalProfiles>      
              <ValidationTechnicalProfile ReferenceId="REST-CheckActiveStatus" />             
                <ValidationTechnicalProfile ReferenceId="AppInsights-CustomSigninActiveCheck">                
              </ValidationTechnicalProfile> 
              <ValidationTechnicalProfile ReferenceId="login-NonInteractive">              
              </ValidationTechnicalProfile>
          </ValidationTechnicalProfiles>
          <UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
      </TechnicalProfile>


如果您直接从编排步骤调用它,它是否有效?因为这应该可以工作,所以我怀疑这与调用它的位置无关,而是与您的配置有关。当我从编排步骤调用它时,它可以工作,但当从验证技术配置文件调用它时,它不能工作REST CheckActiveStatus是否返回成功响应?如果返回4xx响应,则验证将在该步骤停止,日志记录将不会运行。REST-CheckActiveStatus是否正在运行?该代码段对我来说应该可以正常工作,我唯一能看到的是,您的后两个
ValidationTechnicalProfile
步骤没有使用自动关闭标记,尽管我没有料到这会是一个问题。