title: Azure Blob Storage Lifecycle Management - filter on folder
body: <p>I'm playing with lifecycle management in Azure and trying to get it to move blobs to cool based on the folder they are in. The documentation on Azure says this is possible but they only provide examples of container prefixes. My question with this is, if it is possible and if so how do you define the filter?</p>
  <p>My scenario is I have multiple containers with the same folder structure in each. E.G.
  container1/folder1
  container1/folder2
  container2/folder1
  container2/folder2</p>
  <p>I need to be able to apply rules on folder level so the blobs in folder1 will go to cool after 1 day whilst in folder2 it moves to cool after 5 days (trivial example). It should ignore the container name as they are generated on the fly and I don't know the names of them, only the structure within them.</p>
  <p>my current rule filter is like so &quot;**/folder1&quot; but this isn't moving anything. I've also tried just the folder name, E.G. &quot;folder1&quot;</p>
  <p>Any idea what I'm missing? It's annoying that there's no instant feedback from Azure and I have to wait until the time it runs to find out whether it works (at least 24 hours)</p>
  <p>Thanks all</p>