Hello Ben Smith,
Welcome to the Microsoft Q&A and thank you for posting your questions here and thank you for detailed information.
Problem
I understand that you are having Azure Functions issues related to editing and reviewing code.
Solution
Regarding information and question, when you create a Python Function App in the Azure Portal, the option to "Download App Content" is disabled. This is because in-portal editing is disabled for Azure Python Functions.
It is a known limitation and to work around it, you can create a new project locally and copy the necessary files from the Azure Portal:
- Copy the
host.json
andrequirements.txt
files from the Azure Portal > Function App > App Files. - From the Azure Portal > Your Function App > Functions > Code+Test menu of the specific function, copy the
init.py
andfunction.json
files. - Paste the contents of these files into your new local project or edit the already published project in Visual Studio Code (VS Code) and publish the changes.
Secondly,
To review the execution of your function, follow these steps:
- In the Azure Portal, navigate to your Function App.
- Click on the specific function you want to review.
- Go to the "Code+Test" menu.
- Here, you can test your function by providing input and observing the output.
Lastly,
Another workaround is to set up continuous deployment using GitHub as the source. This way, your project code will be available in GitHub, where you can edit it and push changes to Azure.
References
Source: How to edit a read-only Azure Function python code. Accessed, 6/28/2024.
Source: Similar Answer: Azure function - Portal editing is disabled - Microsoft Q&A. Accessed, 6/28/2024.
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam