Hello Václav Parma,
Thanks for posting your question in the Microsoft Q&A forum.
this issue is likely related to the function's access to storage and the way authentication is being handled. Here are some potential causes and solutions
Storage Access: When you set up authentication, the function may lose access to its storage account.
- Ensure that the function app's managed identity is enabled
- Grant the managed identity access to the storage account by assigning it the
Storage Blob Data Owner
role - Update the function app's configuration to use managed identity for storage access
Authentication Configuration: The "HTTP 302 Found Redirect" setting might be causing issues with the function's execution.
- Switch back to
HTTP 401 Unauthorized
temporarily to verify if the function regains access to storage and files. - Review your OpenID Connect configuration to ensure it's correctly set up for your use case.
Flex Consumption Plan Limitations: The flex consumption plan is relatively new and may have some limitations or differences compared to other plans
- Some deployment-related features, including continuous deployment, are not currently supported on the flex consumption plan.
- Certain application settings and site configuration properties may be deprecated or moved in this plan
CORS Configuration: If you're accessing the function from the Azure portal or other domains, ensure that CORS is properly configured
- Add
https://functions.azure.com
as an allowed origin in your CORS settings
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful