【发布时间】:2022-01-07 07:34:10
【问题描述】:
我在 shell 脚本中使用 Azcopy 将容器中的 blob 从一个存储帐户复制到 Azure 上的另一个帐户。 使用以下命令 -
azcopy copy "https://$source_storage_name.blob.core.windows.net/$container_name/?$source_sas" "https://$dest_storage_name.blob.core.windows.net/$container_name/?$dest_sas" --recursive
我正在为源帐户和目标帐户生成 SAS 令牌,并将它们作为参数在上述命令中与存储帐户和容器名称一起传递。
在执行时,我不断收到此错误 ->
failed to parse user input due to error: the inferred source/destination combination could not be identified, or is currently not supported
当我手动输入存储帐户名称、容器名称和 SAS 令牌时,命令成功执行,存储数据按预期传输。但是,当我在 azcopy 命令中使用参数时,我得到了错误。
对此的任何建议将不胜感激。
谢谢!
【问题讨论】:
标签: azure-storage azure-cli azure-storage-account azcopy azure-storage-files