I have generated a Shared Access Signature in the Azure portal. It gives me three strings: Connection string
, SAS token
, and Table service SAS URL
. I would have thought that I could take the value of Connection string
which contains the value of the SAS token
prefixed by a url and create a new TableClient
and query my table but it doesn't work.
Please note: I'm using Azure.Data.Tables 12.8.0
TableClient tc = new TableClient("<value-of-Connection-string>", "<my-table-name>");
var data = tc.Query<MyPoco>(); // I realize this is a table scan but don't care until it works
This returns error:
RequestFailedException: This request is not authorized to perform this operation using this resource type.
RequestId:dfe1fbe6-XXXX-002d-7997-XXXXXXXXXXXX
Time:2023-03-14T17:09:53.0004938Z
Status: 403 (Forbidden)
ErrorCode: AuthorizationResourceTypeMismatch
Can anyone help?