Hi hampton123,
Thank you for reaching out on Microsoft Q&A!
If I understand you correctly you've got an APIM set up with an API endpoint pointing to your Azure Function, right? By design Web Apps, which is basically the base layer of an Azure Function, ignore the 'Authorization' header completely. Therefor not showing in the app.
One of the reasons being that it's not a security risk that the Authorization header is ignored, as in a zero-trust principle you would not want Authorization details to pass every hop in the chain. Every resource should do it's own authorization. So =the fact that the subcription key is passed is the actual security risk here.
If you may need the Authorization header, for example if you need the details in the Azure Function for processing and/or validation, you could convert it to a custom header as below:
<set-header name="X-Custom-Authorization" exists-action="override">
<value>@(context.Request.Headers.GetValueOrDefault("Authorization"))</value>
</set-header>
You can then make your Azure Function look for that specific header, which enables you to get the Authorization header details still, be it with another name. But, as mentioned, bear in mind that passing through security headers is a risk.
Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!
Kind regards,
Sonny