我试图使用Azure WebJobs SDK在消息发布到队列上时触发函数。AzureWebjobSDK中的StorageConnectionString是否需要访问整个存储帐户?
使用存储帐户密钥将StorageConnectionString设置为连接字符串时,可以正常工作。
我想在StorageConnectionString但得到的错误使用共享访问令牌(SAS),其中有到该队列访问(和只):
Message=Failed to validate Microsoft Azure WebJobs SDK Storage connection string. The Microsoft Azure Storage account connection string is not formatted correctly. Please visit http://msdn.microsoft.com/en-us/library/windowsazure/ee758697.aspx for details about configuring Microsoft Azure Storage connection strings.
和:
Message=The account credentials for '' are incorrect. Source=Microsoft.Azure.WebJobs.Host StackTrace: at Microsoft.Azure.WebJobs.Host.Executors.DefaultStorageCredentialsValidator.<ValidateCredentialsAsyncCore>d__4.MoveNext()
我使用的连接字符串格式如下: BlobEndpoint = https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccoount.queue.core.windows.net/queuename;SharedAccessSignature=token
任何机会StorageConnectionString要求访问整个存储帐户?如果是这样,你有一个想法我可以做什么?
我很确定它可以在连接字符串中使用SAS:https://docs.microsoft.com/en-us/azure/storage/storage-configure-connection-string#create-a-connection- string-using-a-shared-access-signature – 4c74356b41
是的,我知道可以在连接字符串中使用SAS。问题是Azure WebJob SDK是否允许在连接字符串中使用SAS,该连接字符串仅向队列授予权限 –