Deployment and Log Stream Issues with Azure Python Function App

Jose Riveaux 0 Reputation points
2025-04-25T18:13:10.6233333+00:00

Hello,

I am currently experiencing several issues while trying to deploy my Azure Function App developed in Python. The problems I’m encountering are as follows:

  1. When I try to deploy the function using a Consumption Plan, I am unable to deploy a Python Function App under that plan.
  2. I am unable to create a Flex Consumption Function App in the Brazil South region.
  3. 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.

Could you please assist me in resolving these issues?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,711 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Suwarna S Kale 1,981 Reputation points
    2025-04-28T23:21:01.5+00:00

    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: 

    1. Verify Application Insights Integration: 
      • Ensure APPINSIGHTS_INSTRUMENTATIONKEY is set in Configuration > Application settings. 
      • Check if logs appear in Application Insights > Logs. 
    2. 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. 
    1. 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. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.