title: How to use SAS on StorageCredentials for Azure Table Storage?
body: <p>I create a SAS on a given table, using the .NET API:</p>
  
  <pre><code>        var tablePolicy = new SharedAccessTablePolicy()
          {
              SharedAccessExpiryTime = DateTime.Now.Add(TimeSpan.FromHours(2)),
              Permissions = SharedAccessTablePermissions.Query
          };
          var permissions = new TablePermissions();
  
          permissions.SharedAccessPolicies.Add("myPolicy", tablePolicy);
  
          var credentials = new StorageCredentials(
              "#my account here#",
              "#my account secondary key here#");
          var tableClient = new CloudTableClient(
              new Uri("https://#my account here#.table.core.windows.net/"),
              credentials);
          var logTable = tableClient.GetTableReference("WADLogsTable");
  
          logTable.SetPermissions(permissions);
  
          var sas = logTable.GetSharedAccessSignature(tablePolicy, "myPolicy", null, null, null, null);
  </code></pre>
  
  <p>I then take this last 'sas' variable and use it to create credentials and perform a query:</p>
  
  <pre><code>        var credentials = new StorageCredentials(sas);
          var tableClient = new CloudTableClient(
              new Uri("#my account URI here#"),
              credentials);
          var logTable = tableClient.GetTableReference("WADLogsTable");
          var rows = logTable.ExecuteQuery(new TableQuery()).ToArray();
  </code></pre>
  
  <p>I then receive a 403 (forbidden) error.</p>
  
  <p>What did I do wrong?</p>