A cloud-based identity and access management service for securing user authentication and resource access
Hello Jonah Bader
Create an Microsoft Entra ID Function app and enable Authentication like below:

Expose an API

Added API permissions:

Now, generate access token and authenticate Function app by using below parameters:
GET https
I got the same error (401 Unauthorized) like below:

To resolve the error, make sure to pass x-functions-key header:

The x-functions-key value is the code value in the function URL:

After passing the header, I am able to authenticate the Function app successfully using access token like below:
GET https
If the resolution was helpful, kindly take a moment to click on
and click on Yes for was this answer helpful. And, if you have any further query do let us know.