user203687
user203687

Reputation: 7247

How to download/clone source code from Azure App Service to local machine using azure-cli/powershell

I happened to check an article which explained on how to download Azure app service source code:

How to download Azure App Service Source Code Download

I would like to have something similar to be achieved (leveraging azure-cli/powershell), but based on following order:

I was reading a lot about azure-cli in order to work with app service. Most of the articles start with creating an app and in my case, I have to start with an existing (already deployed) app. I couldn't find an article which actually shows on how to download/clone an existing app service on to local machine (other than using git endpoint). In the above, "Step 1" itself is a major hurdle for me.

Also, in this scenario, I would like to avoid "git" (based clone/push/deployments) if at all possible. No offence on using Git, but, just wanted to learn other available options.

If I can have (azure-cli/powershell) examples for Steps 1, 4, 5 and 6, they will help me learn quite a bit.

Upvotes: 1

Views: 7772

Answers (1)

Doris Lv
Doris Lv

Reputation: 3398

First of all, your order is not recommended. For safety, developers would rarely publish the source code directly in most instances.

If you want to download your own project published to Azure already, the best way is using FTP, which you post with the link.

Just a reminder, even you could download the source code, as I said, it is the code compiled, which would cause some mess when you use it. So store you source code well to avoiding this situation.

Upvotes: 1

Related Questions