I believe you're getting this error because you're defining both SharedAccessTablePolicy
and Policy Name
when creating SAS. So if you use either of the following that should work:
var sas = logTable.GetSharedAccessSignature(tablePolicy, null, null, null, null, null);
or
var sas = logTable.GetSharedAccessSignature(null, "myPolicy", null, null, null, null);