Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't download app content of azure function via portal

How do I download the source code of already-deployed Azure functions? The person who deployed this function has not versioned it in a repo yet, and the button is grayed out in the portal, as you can see.

Download button is grayed out

like image 985
Imad Avatar asked Oct 21 '25 16:10

Imad


1 Answers

What works:

  • Log into azure
  • New tab
  • Go to https://FUNCTION_APP_NAME_HERE.scm.azurewebsites.net/api/settings
  • copy content of SCM_RUN_FROM_PACKAGE (which is a link)
  • another tab, go to http://... (the link given as SCM_RUN_FROM_PACKAGE)
  • you get a file with .zip extension, but it's not a ZIP
  • brew install squashfs (or whichever installer you need for your platform)
  • unsquashfs $zipfile
  • you have a new folder squahsfs-root
  • mv sqhashfs-root $(basename $file .zip)
  • (done)
like image 148
Sebastian Rothbucher Avatar answered Oct 23 '25 08:10

Sebastian Rothbucher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!