Azure 存储帐户身份验证

Azure storage account authentication

我正在尝试在 Azure 上开发一个“上传文件”解决方案,我在其中限制对单个存储帐户内的某些容器甚至 blob 的访问。

典型场景是客户1上传数据到容器1,客户2上传数据到容器2。

是否有内置方法来限制通过某种凭据访问特定容器?

是的,它是通过容器的共享访问签名 (SAS) 完成的:

https://docs.microsoft.com/en-us/azure/storage/blobs/sas-service-create?tabs=dotnet

https://docs.microsoft.com/en-us/azure/storage/common/storage-stored-access-policy-define-dotnet?tabs=dotnet