title: Invalid JWT While Running External Function '{ "statusCode": 401, "message": "Invalid JWT." }
body: <p>Hi All I have created external function by following steps listed down by Snowflake</p>
  <p><a href="https://quickstarts.snowflake.com/guide/getting_started_external_functions_azure/index.html?index=..%2F..index#4" rel="nofollow noreferrer">https://quickstarts.snowflake.com/guide/getting_started_external_functions_azure/index.html?index=..%2F..index#4</a></p>
  <p>Also implemented JWT policy as specified in following URL
  <a href="https://docs.snowflake.com/en/sql-reference/external-functions-creating-azure-ui-security-policy.html#create-a-validate-jwt-policy-that-allows-snowflake-to-call-the-azure-function" rel="nofollow noreferrer">https://docs.snowflake.com/en/sql-reference/external-functions-creating-azure-ui-security-policy.html#create-a-validate-jwt-policy-that-allows-snowflake-to-call-the-azure-function</a></p>
  <p>Getting following error '{ &quot;statusCode&quot;: 401, &quot;message&quot;: &quot;Invalid JWT.&quot; }</p>
  <p>Any clue what wrong i am doing.</p>