title: How to check if a blob already exists in Azure blob container using PowerShell
body: <p>I have a Windows PowerShell script that uploads a file to my Azure Blob Storage.
  I want the file only to upload if it doesn't already exists in the container.</p>
  
  <p>How do I check if the blob already exists ?</p>
  
  <p>I tired to use <a href="https://msdn.microsoft.com/en-us/library/dn806392.aspx" rel="noreferrer">Get-AzureStorageBlob</a> but if the blob doesn't exists, it returns an error. Should I parse the error message to determine that the blob doesn't exists ? This doesn't seem right...</p>
  
  <p>And <a href="https://msdn.microsoft.com/en-us/library/dn806379.aspx" rel="noreferrer">Set-AzureStorageBlobContent</a> is asking for a confirmation when the blob exists. Is there a way to automatically answer "No" ? This cmdlet doesn't have -confirm and -force would overwrite the file (which I don't want).</p>