title: How to read a blob in Azure databricks with SAS
body: <p>I'm new to Databricks. I write sample code to read Storage Blob in Azure Databricks.</p>
  
  <pre><code>blob_account_name = "sars"
  blob_container_name = "mpi"
  blob_sas_token =r"**"
  ini_path = "58154388-b043-4080-a0ef-aa5fdefe22c8"
  
  inputini = 'wasbs://%s@%s.blob.core.windows.net/%s' % (blob_container_name, blob_account_name, ini_path)
  spark.conf.set("fs.azure.sas.%s.%s.blob.core.windows.net"% (blob_container_name, blob_account_name), blob_sas_token)
  
  print(inputini)
  ini=sc.textFile(inputini).collect()
  </code></pre>
  
  <p>It throw error:</p>
  
  <pre><code>Container mpi in account sars.blob.core.windows.net not found
  </code></pre>
  
  <p>I guess it doesn't attach the SAS token in WASBS link, so that it doesn't permission to read the data.</p>
  
  <p>How to attach the SAS in wasbs link.</p>