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 in Azure by Edureka
• 5,760 points
69 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 by Edureka
• 5,460 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 in Azure by Edureka
• 5,760 points
17 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 in Azure by Edureka
• 5,760 points
50 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 in Azure by Edureka
• 5,760 points
74 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 in Azure by Edureka
• 5,460 points
34 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 in Azure by Edureka
• 5,460 points
29 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP