简体   繁体   English

设置AZURE_STORAGE_CONNECTION_STRING后,存储Blob上传命令失败

[英]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命令。

  1. AZURE_STORAGE_CONNECTION_STRING AZURE_STORAGE_CONNECTION_STRING
  2. AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY AZURE_STORAGE_ACCOUNT和AZURE_STORAGE_ACCESS_KEY

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.

相关问题 Microsoft Azure 存储资源管理器不加载本地模拟器存储 - Microsoft Azure Storage Explorer does not load local emulator storage Mac OSX 中 eclipse 中的凭据存储失败 - Credential storage failed in eclipse in Mac OSX 在 Mac (Catalina) 上安装 Azure 存储资源管理器不起作用 - Install for Azure Storage Explorer on Mac (Catalina) is not working asahi linux卸载后缺少存储空间 - Missing storage space after asahi linux uninstall 通过 macOS 终端上传图片到谷歌云存储 - Upload a picture to Google Cloud Storage via macOS terminal 从OSX(Mac)上的控制台应用程序访问Azure存储帐户 - Accessing Azure storage account from console app on OSX (Mac) 错误:无法验证nodejs中的第一个证书azure队列存储createMessage - Error: unable to verify the first certificate in nodejs azure queue storage createMessage 登录成功后将电子邮件保存到safari本地存储 - save email to safari local storage after login success 设置全局安装后找不到Express命令 - Express command not found after setting installing globally Rails和Azure:TinyTds :: Error:Adaptive Server连接失败 - Rails and Azure: TinyTds::Error: Adaptive Server connection failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM