[英]storage blob upload command failed after setting AZURE_STORAGE_CONNECTION_STRING
I'm trying to upload a file to my azure storage. 我正在尝试将文件上传到我的Azure存储。 I did
我做了
$ set AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=**;AccountKey=**
but when I did 但是当我做了
$ azure storage blob upload PATHFILE mycontainer data/book_270.pdf
then I got the following error: 然后我得到以下错误:
info: Executing command storage blob upload error: Please set the storage account parameters or one of the following two environment variables to use the storage command.
info:执行命令storage blob上载错误:请设置存储帐户参数或以下两个环境变量之一以使用storage命令。
info: Error information has been recorded to /Users/uqtngu83/.azure/azure.err
信息:错误信息已记录到/Users/uqtngu83/.azure/azure.err
error: storage blob upload command failed
错误:存储Blob上传命令失败
But I already set AZURE_STORAGE_CONNECTION_STRING! 但是我已经设置了AZURE_STORAGE_CONNECTION_STRING! Please help
请帮忙
As suggested in comment, you are suppose to run the following on your MAC terminal. 如注释中所建议,假设您要在MAC终端上运行以下命令。 (Change Defaultblabla with your Azure Storage Connection String)
(使用您的Azure存储连接字符串更改Defaultblabla)
export AZURE_STORAGE_CONNECTION_STRING="DefaultBlaBlaBla"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.