An Azure service that provides an event-driven serverless compute platform.
Hello Developer2
Thanks for reaching out on Microsoft Q&A and really appreciate your patience while we looked into this.
Understand from description that you are facing an issue with your Azure Function App, where an old function continues to run even after you've deleted it and deployed a new function under a different name. This can happen due to remnants left in the blob storage or functions being stuck due to locks.
Steps:
- Check for Active Function Instances: Double-check Azure Portal to ensure the old function is not showing up in any slots or hidden sections.
Release Blob Leases: You mentioned breaking/deleting blob leases, which is a good step. Make sure you’ve done this for all relevant blobs related to the old function, as sometimes there might be multiple locks.
Delete App Settings & Configuration: If the old function has any associated application settings, remove these. Sometimes, remnants of settings can cause the system to reference old code.
Restart the Function App: After making changes, restart the Function App. This can help ensure that your updates take effect.
Use Application Insights: Check Application Insights to review the telemetry for more clues on what’s happening with the old function.
Redeploy the New Function: As a last resort, it might help to redeploy your new function and ensure that no artifacts of the old function are present.
Please provide the information below if none of the above steps work
- Checked the logs in Application Insights for the old function?
- Did you happen to make any app setting changes after deploying the new function?
- Are there any additional deployment slots that might hold the old function?
- Have you ensured that the old function does not appear in other parts of your Azure resources?
- Function Name
I hope this helps in resolving the issue, do let me know if you have any further questions on this.
Thanks