An Azure service that provides an event-driven serverless compute platform.
Hi @David Shepherd,
The error states that, the default credential is unable to generate a token.
Make sure that you have enabled managed identity and given the correct role to the resource as below:
If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.