'The file cannot be copied onto itself from Azure Function Console

I have created an Azure Function (Windows - Consumption Plan). I need to copy a dylib file into the function apps bin folder.

I get a message stating The file cannot be copied onto itself.. How can I solve this ?

C:\home\site\wwwroot>copy libwkhtmltox.dylib /bin/libwkhtmltox.dylib
The file cannot be copied onto itself.
        0 file(s) copied.

enter image description here

Note: I have published this app to Azure from VS studio.

UPDATE - AFTER REMOVING WEBSITE_RUN_FROM_PACKAGE enter image description here

enter image description here



Solution 1:[1]

I get a message stating The file cannot be copied onto itself.

the warning Your app is currently in read only mode because you are running from a package file. To make any changes, please update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting. Still appears

For the above error I tried to deploy one function app from my VS CODE to Azure and after that i have got the similar issue if i am trying to copy files inside kudu console.

enter image description here

As per @HariKrishnaRajoli-MT suggestion , I deleted the WEBSITE_RUN_FROM_PACKAGE from configuration setting and then save and refresh and then go to Advance Tools . And run the cmd as below screenshot .

enter image description here

And it works fine here are some screenshot for reference :

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AjayKumarGhose-MT