title: Deploy to Azure from CircleCI
body: <p>I'm using CircleCI for the first time and having trouble publishing to Azure.</p>
  
  <p>The docs don't have an example for Azure, they have an example for AWS and a note for Azure saying "To deploy to Azure, use a similar job to the above example that uses an appropriate command."</p>
  
  <p>If anybody has an example YAML file that would be great, if not a nudge in the right direction would be handy. So far I think I've worked out the following.</p>
  
  <ol>
  <li><p>I need a config that will install the Azure CLI</p></li>
  <li><p>I need to put my Azure deployment credentials in an environment variable and </p></li>
  <li><p>I need to run a deploy command in the YAML file to zip up all the right files and deploy to my Azure app service.</p></li>
  </ol>
  
  <p>I have no idea if the above is correct, or how to do it, but that's my understanding right now.</p>
  
  <p>I've also posted this on <a href="https://discuss.circleci.com/t/deploy-to-azure-from-circleci/23203" rel="nofollow noreferrer">the CircleCi forum</a>.</p>
  
  <p>EDIT: Just to add a little more info, the AWS version of the config file used the following command:</p>
  
  <pre><code>- run:
        name: Deploy to S3
        command: aws s3 sync jekyll/_site/docs s3://circle-production-static-site/docs/ --delete
  </code></pre>
  
  <p>So I guess I'm looking for the Azure equivalent.</p>