问题描述
我在Ubuntu 16.04服务器中使用azcopy 7.2将文件上传到另一个Azure订阅中的blob存储帐户,并且传输总是失败。我能做些什么来完成这项工作?将文件传输到位于不同位置的存储
帐户时我也遇到同样的问题(来源位于USEast,目的地位于SEAsia)。
I used azcopy 7.2 in an Ubuntu 16.04 server to upload a file to a blob storage account that is in a different Azure Subscription and the transfer always fail. What can I do to make this work? I also face the same issue when transferring a file to a storage account that is on a different location (source is in USEast, destination is in SEAsia).
错误是:
The error is:
推荐答案
感谢您在此发布!
请确保您输入了正确的存储帐户名称和有效的目标访问密钥。尝试访问过期的存储帐户时也会发生这种情况。
Please make sure that you have entered the correct storage account name and a valid destination access key. This can also occur when attempting to access an expired storage account.
如果要将文件从Linux VM上载到存储帐户,请使用以下AZ复制命令。
If you are uploading a file from Linux VM to the storage account, then use the below AZ copy command.
azcopy \
- 来源/mnt/myfiles/abc.txt \
--source /mnt/myfiles/abc.txt \
  ;     
- 目的地https://myaccount.blob.core.windows.net/mycontainer/abc.txt \
--destination https://myaccount.blob.core.windows.net/mycontainer/abc.txt \
           
- dest-key< key>
--dest-key <key>
有关详细信息,请查看 。
Also, you can verify if virtual network and firewall rules are configured properly on the storage account. To test if virtual network or firewall rules is causing the issue, temporarily change the setting on the storage account to Allow access from all networks. To learn more, see Configure Azure Storage firewalls and virtual networks.
您可以参考类似的查询
在这里并验证您的用户帐户是否有权访问存储帐户,
You can refer the similar query here and verify your user account has access to the storage account,
如果您需要任何进一步的帮助,请告诉我们。
Kindly let us know if you need any further assistance on this.
这篇关于Linux azcopy文件上传到其他订阅不起作用(传输失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!