My hard disc has crashed. Azure functions were written using Visual Studio Code and deployed to the Azure Functions.
However, right now although I can see all the codes but, I am unable to sync it to my new system in Visual Studio Code.
I am using Consumption Plan, Python in Linux OS.
"Download App Content" is disabled in my account.
CodePudding user response:
Yes, Download App Content
option is disabled for the Azure Functions Python Linux OS in the Azure Portal.
To download its App Content, you can use the FTP Login like:
- Go to the deployment Center > Select FTPS Credentials > Copy FTPS Endpoint, Username and Password to the
This is possible when you created the Functions using the Azure Portal (Consumption Function App).
You cannot see the Code files in FTPS Client if you have deployed the Functions from local IDE (VS Code, etc) to the Azure Function App Consumption Plan.
If you have deployed the functions from local IDE to the Portal Function App (App Service Plan & Premium Plan), then you can see the files using FTP Client (eg, WinSCP) using the above method.
Note: You can also get the FTPS endpoint and credentials from the
Get Publish Profile
option.Updated Answer:
If you have deployed the functions from local IDE to Portal Function App (Consumption Mode), then the workaround is to copy the code manually from the portal function app to your local project:
As of now, I believe the above is the workaround in that scenario. It is not so easy to do manually if many functions (triggers) are present in the Function App, so I would recommend you raise the feature request in the Azure Functions Python GitHub Repository.