Hi
Handy Thanks for reaching out. You can use Kudu to download the function code and inspect it locally. To access Kudu, go to your function app in the Azure portal, click on "Advanced Tools" in the left-hand menu, and then click on "Go" under "Kudu".
- In the Kudu portal, click on "Debug Console" in the left-hand menu.
- Select "CMD" to open a command prompt.
- Navigate to the
site/wwwroot
directory by typingcd site\wwwroot
- Type
dir
to list the contents of the directory. You should see the files and folders for your function app. - To download the code for your function app, you can use the "Download" button in the Kudu portal.
or if you're using consumption/elastic premium plan you can download from file shares in the storage account if you're using dedicated plan, You can also try to FTP into the app service and download your source code.
Let me know incase of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.