Hello Jose Riveaux,
Thank you for posting your question in the Microsoft Q&A forum.
Q. When I try to deploy the function using a Consumption Plan, I am unable to deploy a Python Function App under that plan? - Python Function Apps cannot run on the traditional Consumption Plan (only on Flex Consumption or Premium/Dedicated plans).
Solution: Use Flex Consumption (recommended for Python) or Premium Plan (EP1+). If Flex Consumption isn’t available in Brazil South (see next point), deploy to East US or another supported region.
Q. I am unable to create a Flex Consumption Function App in the Brazil South region - Flex Consumption is region-dependent. Brazil South may not support it yet.
Workarounds:
- Deploy to a supported region (e.g., East US, West Europe).
- Use Premium Plan (EP1) if low latency in Brazil is critical.
- Check for updates on Azure Updates for Brazil South support.
Q. After deploying the function using a Flex Consumption Plan in the East US region, I am unable to access the Log Stream of my Azure Function monkai-service - Log Stream fails to load after deployment (common in Flex Consumption).
Troubleshooting Steps:
- Verify Application Insights Integration:
- Ensure APPINSIGHTS_INSTRUMENTATIONKEY is set in Configuration > Application settings.
- Check if logs appear in Application Insights > Logs.
- Enable Detailed Logging:
- Set these Application Settings:
ini
AzureFunctionsJobHost__logging__logLevel__Default = "Debug" SCM_LOGSTREAM_TIMEOUT = "7200" # Prevents early disconnects
- Restart the function app after changes.
- Alternative Log Access Methods:
- Azure CLI:
sh
az webapp log tail --name <function-app-name> --resource-group <resource-group>
- Kudu Console (if on Premium Plan): Navigate to:
https://<function-app-name>.scm.azurewebsites.net/DebugConsole
- Check logs under /home/LogFiles/Application/Functions**.**
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.