How to download Azure Function Python zip file

0 votes

The docs here (from 2018) say to click Download app content from the Portal to retrieve a .zip file of your Azure Function.

However, this option is grayed out for my Python function:

enter image description here

The doc goes on to provide an alternative method for retrieving a .zip file using REST API with the following url https://<function_app>.scm.azurewebsites.net/api/zip/site/wwwroot/.

Unfortunately, this downloads a download.zip file containing only the hosts.json file rather than the Function code and associated files.

enter image description here

So, how do I download my Python Function as a .zip file from either Azure Portal, REST API or the scm backend?

EDIT 1: Trying the two proposed solutions so far yield no results either.

  • AzureWebJobsStorage: No scm-deployments container available. enter image description here

  • FTPS option: No .zip file available. Only the host.json file. enter image description here

Mar 26, 2022 in Azure by Edureka
• 13,620 points
2,193 views

1 answer to this question.

0 votes

You can use ftp to get app content, but only for premium plan and app service plan:

enter image description here

If you are based on the consumption plan, you need to click in each trigger and copy the code.

enter image description here

And the files outside the trigger is in this place:

enter image description here

answered Mar 29, 2022 by Edureka
• 12,690 points

Related Questions In Azure

0 votes
0 answers

How to represent Azure Function in Microsoft threat modeling tool?

How can I represent Azure Functions as ...READ MORE

Apr 11, 2022 in Azure by Edureka
• 13,620 points
323 views
0 votes
1 answer

How to retrieve View definition on Synapse (Azure SQL DW)?

To authenticate with Azure SQL Database or ...READ MORE

answered Mar 4, 2022 in Azure by Edureka
• 13,620 points
1,190 views
0 votes
1 answer
0 votes
1 answer

How to add Azure Portal to myapps.microsoft.com

Steps to add Azure Portal: Sign in as an ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 1,805 views
0 votes
1 answer

How do I use Powershell to create an Azure Web App that runs on Linux?

Try the command below: New-AzureRmResource -ResourceGroupName <ResourceGroupName> -Location ...READ MORE

answered Mar 25, 2022 in Azure by Edureka
• 12,690 points
649 views
0 votes
1 answer

How to get the percentage of the predicted labels in Azure Custom Vision?

It's calculated in the same way, except ...READ MORE

answered Mar 26, 2022 in Azure by Edureka
• 12,690 points
321 views
0 votes
1 answer

Unable download large file from Azure Storage

If your download from the Azure Storage ...READ MORE

answered Mar 24, 2022 in Azure by Edureka
• 12,690 points
1,687 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP