title: Azure API Management With OpenAPI (FunctionApps) getting 401
body: <p>My requirements are to host APIs, with Function Apps as backend. I also want the documentation for those APIs (automatically generated through function-App code (so I don't have to write documentation on Api-management))</p>
  <p>I have setup API management to import APIs from swagger file (OpenAPI) that is exposed through a URL in my FunctionApp.</p>
  <p>The APIs look fine and I can see it in Developer-Portal on API-Management. But when I actually make the call, it fails with 401.</p>
  <p>I am guessing the token sent to FunctionApp is wrong or missing when API-Management sends the request.</p>
  <p>My question how/where to configure that token that're configured on function app.</p>
  <p>Secondly, is this the right approach? I am using Swagger nugget to configure/generate documentation of APIs on functionApp and import that swagger-json into api-management (OpenAPI option), or is there a better way to expose documentation of functionapp-apis through API-Management.</p>
  <p>P.S. If I import the APIs using FunctionApps option, everything works fine but I dont get the documentation I want.</p>
  <p>TIA</p>