lammy
lammy

Reputation: 467

File version different between Azure Portal and Azure Portal Kudu for the same file

Currently my Azure Function shows a different file version in the portal as compared to Kudu.

I am using Azure App Service /w Azure Functions V2 and Python 3.7.

I publish my function app using:

func azure functionapp publish <functionappname>

It successfully performs a remote build. Now if I look at my Function App in the portal I can see the updated version of my init.py. However, when I use Kudu (Platform features > Advanced tools (Kudu)) to look into the file /home/site/wwwroot//init.py I still see the old version. Shouldn't these versions be identical?

I hope some experienced user can shed light on this.

Upvotes: 0

Views: 148

Answers (1)

Hury Shen
Hury Shen

Reputation: 15754

I test it in my side, when I create a new azure function app(python) and deploy the python code from VS Code to azure portal. It will not create a "init.py" under the directory /home/site/wwwroot. In this directory, it just exists a "host.json"(shown as below).

enter image description here

So you can see the new version of your "init.py" after your deployment on azure portal, but it seems the old version "init.py" in the directory /home/site/wwwroot may be created by a deployment in the past or created because some other reasons in the past. I think it has nothing to do with your new deployment.

Upvotes: 0

Related Questions