title: Azure function app - writing to blob
body: <p>I am trying to write to a blob (txt-file) from my Azure function, however, nothing happens: no blobs are created, no exceptions are thrown.
  I've taken the Blob-trigger code from here: <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob#output" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob#output</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>[FunctionName("ProcessFiles")]
  public static void Run(
  [BlobTrigger("sample-items/sample-file.csv", Connection = "sample-connection")] Stream myBlob,
  [Blob("sample-items/validationResult.json", FileAccess.Write)] Stream validationOutput,
  TraceWriter log)
  {
      log.Info($"C# Blob trigger function Processed blob\n Size: {myBlob.Length} Bytes");
  
      using (var sw = new StreamWriter(validationOutput, Encoding.UTF8))
      {
          try
          {
              sw.Write("HELLO WORLD");            
              sw.Flush();
          }
          catch (Exception ex)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>These are my Nuget packages: Microsoft.NET.Sdk.Functions 1.0.10.</p>
  
  <p>The blob container has "Private access" policy</p>