my function app is not reflecting my code changes even after successful deployment from visual studio code to azure function app.

Shashi Bhushan Garg (Nokia) 20 Reputation points
2024-10-24T06:34:17.03+00:00

I had created a function app net-dev-fwdatacollection.azurewebsites.net in azure. Few weeks back, I deployed code from visual studio code, and it was working fine. Yesterday, I improved my code and then redeployed to my function app. The deployment was successful, but my new code is not reflecting in azure function app. I have tried the same few times but in vain. Could you please help me know what could be the reason behind this problem and how can I resolve this?

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

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,600 Reputation points Microsoft Employee Volunteer Moderator
    2024-10-27T19:57:43.3133333+00:00

    Hello @Shashi Bhushan Garg (Nokia) To resolve this, you can try deleting the deployment package from the Azure Storage and then redeploying your code. You can follow these steps to delete the deployment package:

    1. Open the Azure portal and navigate to your function app.
    2. Click on the "Platform features" tab and then click on "Advanced tools (Kudu)".
    3. In the Kudu console, click on "Debug console" and then click on "PowerShell".
    4. Navigate to the site/wwwroot directory and delete the bin and obj folders.
    5. Navigate to the "data/SitePackages" directory and delete the deployment package. After deleting the deployment package, you can redeploy your code from Visual Studio Code to your function app. This should update the deployment package with the latest changes and reflect the changes in your function app.

    This should solve your issue


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.


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.