Share via

Function App Deployment Issue - Existing Functions Not Overwritten. How to overwrite existing function?

Ranjan Khakurel 5 Reputation points
2024-02-20T20:57:25.8133333+00:00

I have a issue related to my Azure Function app deployment. Despite my attempts to deploy new functions, they do not overwrite the existing ones. Here are the details of my case:

  1. Function App Details:
    • Runtime: Python
  2. Problem Description:
    • Whenever I deploy a new function, it does not replace the existing function code. The old function remains active, and the new code does not take effect. eg. There is already an existing function app named http-trigger. When I try to deploy 3 different function (funcA, funcB and funcC) via VSCode, it gives me message of successful deployment. I can also see the content on the function app code+test section. However, the name of function app does not change. I can only see 1 function app with name http-trigger.
  3. Expected Behavior:
    • I expect that deploying a new function should overwrite the existing one and display 3 functions, ensuring that the latest code is in effect.
  4. Troubleshooting Done:
    • I’ve manually restarted the function app.
    • I’ve reviewed the function app configuration settings, including runtime, triggers, and connection strings.
    • I’ve checked the storage account connections to ensure they are correctly set up.
  5. Additional Information:
    • No error messages are displayed during deployment.
    • The issue occurs consistently across different deployment methods. Can anyone please help me with the solution.
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Mike Urnun 9,792 Reputation points Moderator
    2024-02-23T17:27:38.4333333+00:00

    Closing this thread as the issue was resolved. More specifically, @Ranjan Khakurel confirmed that switching to a new storage account and then pointing back to the previous one resulted in the issue getting fixed. If this helps others, please upvote accordingly. Thanks @Ranjan Khakurel for sharing the details of what resolved the issue.

    Was this answer helpful?

    0 comments No comments

Your answer

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