Function disappears from function app

Abitamim Bharmal 20 Reputation points Microsoft Employee
2025-03-09T23:58:18.2533333+00:00

I create functions, and they work for a few minutes. I am able to select them in my logic app and use them.

However, they abruptly disappear from the portal, become unselectable from logic app, and return 404 when my HTTP trigger in the logic app attempts to reach it.

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

Accepted answer
  1. VenkateshDodda-MSFT 24,951 Reputation points Microsoft Employee Moderator
    2025-03-13T13:42:17.8333333+00:00

    @Abitamim Bharmal Thanks for your time over offline conversation. I have summarized our discussion and posting the same as answer for the benefit of other community members.

    Issue:

    Customer is trying to create functions in their function app which in consumption sku with python as runtime. Post creating the function when they try to test/edit the function from the portal is failing with error retriving the function keys.

    Troubleshooting & Mitigation Steps taken:

    • Customer tried to add the custom libraries like pandas etc., which resulted in runtime errors.
    • To fix the runtime error, they had deployed the http trigger function from local vscode to function app. Post the deployment the runtime is up and they are able to trigger or work with functions.
    • Also, as called out in the documentation portal editing of function is supported in Linux consumption but adding the customer packages to the functions has to be done from local development only as shown below.

    User's image

    For more information adding/mannually installing extensions in the function refer to this doc : https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings?tabs=azure-portal%2Cto-premium#manually-install-extensions

    Hope this helps, let me know if you have any further questions on this.

    Please accept as Yes if the answer is helpful so that it can help others in the community.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Suwarna S Kale 3,391 Reputation points
    2025-03-10T01:29:14.2866667+00:00

    Hello Abitamim Bharmal,

    Thank you for posting your question in the Microsoft Q&A forum.

    The issue you're experiencing, where Azure Functions work initially but then abruptly disappear from the portal, become unselectable in Logic Apps, and return a 404 error, can be caused by few factors as below:

    ·       The Function App might be misconfigured or experiencing deployment issues. For example, if the Function App is deployed to a consumption plan, it might be scaled down to zero after a period of inactivity, causing it to become temporarily unavailable. Additionally, if the deployment process is interrupted or incomplete, the functions may not persist. - https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies?tabs=windows

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings?tabs=azure-portal%2Cto-premium

    ·       The Function App or its associated resources (e.g., storage account, App Service Plan) might have been accidentally deleted or moved. This could happen if someone with access to the Azure portal or CLI modifies the resources. - https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log?tabs=powershell

    ·       Azure Functions rely on an Azure Storage account for operations such as logging, triggers, and state management. If the storage account is deleted, misconfigured, or experiencing issues, the Function App may become unavailable. - https://learn.microsoft.com/en-us/azure/azure-functions/storage-considerations?tabs=azure-cli

    ·       The Function App runtime might encounter errors or become unresponsive due to issues with the hosting plan or runtime version. For example, if the runtime version is outdated or incompatible, the functions may fail to load. - https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale

    ·       The integration between the Logic App and the Function App might be misconfigured. For example, if the HTTP trigger URL changes or the API connection is not properly set up, the Logic App may fail to invoke the function.- https://learn.microsoft.com/en-us/azure/logic-apps/call-azure-functions-from-workflows

    ·       If the Function App exceeds its quota limits (e.g., execution time, memory usage, or request count), it may be temporarily disabled or throttled. - https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits

    By referring to these resources, you can address the specific issues you're encountering and ensure the stability and reliability of your solutions.

    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.

    0 comments No comments

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.