title: AzCopy: How to know if the copy was success or not
body: <p>I have a script in Ubuntu that copy only one file each hour to the Storage Account. I am using <code>azcopy filename.tar https://&lt;storage&gt;.blob.core.windows.net/&lt;container&gt;</code>.</p>
  <p>This script is working but I'd like to check if the copy was success or not, for example:</p>
  <pre><code>validcopy = azcopy copy filename.tar https://&lt;storage&gt;.blob.core.windows.net/&lt;container&gt;
  if(validcopy){
      echo &quot;Success&quot;
  } else {
      echo &quot;Failure&quot;
  }
  </code></pre>
  <p>Also, I tried using Power Shell in linux (pwsh), but unsuccess.</p>
  <p>Please, can someone help me?</p>