title: azure data factory: copy and zip data by definition from json
body: <p>I'd like to copy multiple files in blob storage (from <code>00000000-0000-0000-0000-000000000001</code>) to one destination (<code>00000000-0000-0000-0000-000000000000</code>) and then zip entire container.
  I have a following json definition which shows from where to where I'd like to copy the files.</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/1.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000001/1.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/2.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000002/2.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/3.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000003/3.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/4.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000004/4.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/5.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000001/5.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/6.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000002/6.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/7.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000003/7.txt&quot;
    },
    {
      &quot;from&quot;: &quot;00000000-0000-0000-0000-000000000001/8.txt&quot;,
      &quot;to&quot;: &quot;00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000004/8.txt&quot;
    }
  ]
  </code></pre>
  <p>This file could be stored anywhere on blob storage so it shouldn't be that hard to read it. The thing I don't know is how can I read the file content and then for each entry <code>{from: .., to: ..}</code> copy the file to destination.</p>