3
有没有使用SAS(共享访问签名)从CLI访问Azure存储容器的方法?使用Azure Cli使用SAS访问Azure存储
显然可能的是using an account name and a key,或者使用连接字符串。但我想在只能从容器中读取的脚本中使用CLI。
有没有使用SAS(共享访问签名)从CLI访问Azure存储容器的方法?使用Azure Cli使用SAS访问Azure存储
显然可能的是using an account name and a key,或者使用连接字符串。但我想在只能从容器中读取的脚本中使用CLI。
使用sas(通过--sas
命令行参数)列出斑点的能力已经存在了一段时间。
上传/下载blob时,最新的CLI(0.10.2)现在有一个--sas
命令行选项。所以...
azure storage blob upload --sas <sas> -c <connection-string> ...
azure storage blob list --sas <sas> ...
azure storage blob download --sas <sas> ...
未来的读者 - 注意'--sas'参数只有sas参数和签名。不是整个乌里。另外,sas包含在某些情况下必须转义的字符('''''''''''''等等)。确保你这样做。 – Malt