title: How to download/clone source code from Azure App Service to local machine using azure-cli/powershell
body: <p>I happened to check an article which explained on how to download Azure app service source code:</p>
  <p><a href="https://medium.com/@michaelhenderson/how-to-download-your-source-code-from-azure-app-service-59c848752b0f" rel="nofollow noreferrer">How to download Azure App Service Source Code Download</a></p>
  <p>I would like to have something similar to be achieved (leveraging azure-cli/powershell), but based on following order:</p>
  <ul>
  <li>Step 1: Download app service source code using azure-cli / powershell commands</li>
  <li>Step 2: modify source code (locally)</li>
  <li>Step 3: create a zip of source code (locally)</li>
  <li>Step 4: Stop app service using azure-cli / powershell commands (getting it ready for deployment)</li>
  <li>Step 5: Deploy the zip using azure-cli / powershell commands</li>
  <li>Step 6: Start app service once the deployment is succesfull</li>
  </ul>
  <p>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, &quot;Step 1&quot; itself is a major hurdle for me.</p>
  <p>Also, in this scenario, I would like to avoid &quot;git&quot; (based clone/push/deployments) if at all possible.  No offence on using Git, but, just wanted to learn other available options.</p>
  <p>If I can have (azure-cli/powershell) examples for Steps 1, 4, 5 and 6, they will help me learn quite a bit.</p>