在storage account的Blob service下创建Container,上传文件,在Advanced下选择
| Authentication type | Account key |
上传文件LICENSE ,会自动生成文件夹licenses。当前复制文件url粘贴到地址栏会被浏览器阻挡。
需要回到文件位置,切换到Generate SAS tab,赋值如下:
| Permissions | Read |
| Start date | yesterday’s date |
| Start time | current time |
| Expiry date | tomorrow’s date |
| Expiry time | current time |
| Allowed IP addresses | leave blank |
| Allowed protocols | HTTP |
| Signing key | Key 1 |
并点击 Generate SAS token and URL ,再次复制Blob SAS URL ,则访问成功。
本文参照:
附:
GRS和LRS:
在Storage account 的Configuration中的Replication下选择: Geo-redundant storage (GRS) Locally redundant storage (LRS)
在Geo-replication 下查看。 Geo-redundant storage (GRS) 有2个点; Locally redundant storage (LRS) 只有1个点。
本文介绍如何在Azure Storage Account的Blob服务中创建容器并上传文件,通过生成共享访问签名(SAS)来控制文件的临时访问权限,包括设置访问权限、有效期等参数。

1292

被折叠的 条评论
为什么被折叠?



