title: Shell script to check if the azcopy command to upload the files from linux to azure storage is successful or not
body: <p>I have tried to upload the db backup files from Linux platform to azure storage using the azcopy command. Sometimes it is failing as the storage is full. can you please tell me how can I write a shell script to check if the upload is successful or not (status code). if upload failed then send an email to respective email ids.
  I have tried below command to upload the files from Linux to Azure Storage:</p>
  
  <pre><code>azcopy --source &lt;sourcepath&gt; --include "*.zip" --destination &lt;destination&gt; \
      --dest-sas "?sv=2019-02-02&amp;ss=bfqt&amp;srt=sco&amp;sp=rwdlacup&amp;se=2021-01-27T13:31:23Z&amp;st=2020-01-27T05:31:23Z&amp;spr=https&amp;sig=5eQClAaajnLNcw3bUtZvWSumSj0FkWalApGm8Y90IgY%3D"
  </code></pre>