title: Get-AzStorageBlob - Specific Folder
body: <p>I have the following script to delete files older than 35 days of age. </p>
  
  <p>How can I make it work only on a particular folder? I'm not sure how to incorporate the $FolderName into the Get-AzStorageBlob command as I can't see any specific switches to use. </p>
  
  <pre><code>$StorageAccountName = "#"
  $StorageAccountKey = "#"
  $ContainerName = "container"
  $CleanupOlderThan35Days = [DateTime]::UtcNow.AddDays(-35)
  $FolderName = "folder"
  
  $Ctx = New-AzStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey
  Get-AzStorageBlob -Container "$ContainerName" -Context $Ctx | Where-Object { $_.LastModified.UtcDateTime -lt $CleanupOlderThan35Days } |Remove-AzStorageBlob
  </code></pre>