Excel Power Query - Is it possible to connect to Azure Blob Storage with SAS authentication or Azure AD account

那年仲夏 提交于 2021-02-16 20:32:07

问题


I am accessing a container from a Azure Blob Storage with Excel, we connect through "New Query" but only gives the option to access with the Account Key.

After logging the permissions are saved in Data source setting with the Account Key.

To access that Azure Blob Storage from VBA is enough with the function from Power Query AzureStorage.Blobs (https://docs.microsoft.com/en-us/powerquery-m/azurestorage-blobs).

¿Is It possible to do the same with SAS (Shared Access Signature) Token or Azure AD account instead of using the Account Key? I've looking and found nothing at the moment


回答1:


Yes, you could connect with sas, however it's not data from azure, in my test it could work with from web.

I generate the sas url with read,write permissions and use HTTP protocol, then in the excel paste the url and replace https to http. Then you will be able to get the data.

If use Power Query, choose New Source-> Other Sources-> Web then it's same with excel get data.



来源:https://stackoverflow.com/questions/60168526/excel-power-query-is-it-possible-to-connect-to-azure-blob-storage-with-sas-aut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!