Azcopy [英] Azcopy

查看:117
本文介绍了Azcopy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在研究无服务器复制解决方案,该解决方案将任何进入Azure文件共享的新文件都复制到Azure blob.

I am working on serverless copy solution where any new files coming to Azure fileshare will be copied over to Azure blob.

我首先尝试了以下命令,当然它必须减少服务器,我正在Azure门户Powershell上进行尝试.

I tried following command first, ofcourse it has to be server less, I am trying it on Azure portal powershell.

azcopy/Source:https://xyz.file.core.windows.net/filetest/Dest:https://xyz.blob.core.windows.net/client1/SourceKey:wwww ==/DestKey:wwww ==/S/XO/XN

azcopy /Source:https://xyz.file.core.windows.net/filetest /Dest:https://xyz.blob.core.windows.net/client1 /SourceKey:wwww== /DestKey:wwww== /S /XO /XN

它成功运行了,

但是现在我要计划它,我不能使用任何服务器,有什么方法可以使用自动化帐户来计划它.因为我无法执行它.我需要在自动化帐户中更新任何模块吗?

But now I want to schedule it, I cant use any server, Is there any way we can schedule this using automation account. because I am not able to execute it. Is there any module I need to update in automation account?

它在下面抛出一个错误:

It throws an error below:

谢谢

Akshay

Akshay Vithalkar; MCTS(AD)MCTS(网络基础设施)MCTS(服务器虚拟化)MCITP(WindowsServer 2K8)MCSA(WindowsServer 2K8)MCTS(WindowsServer 2K12)MCTS(ExchangeServer 2013)MCTS(Office365身份和要求)MCTS(启用Office 365服务)

Akshay Vithalkar; MCTS(AD) MCTS(Network Infra) MCTS(Server Vitrtualization) MCITP(WindowsServer 2K8) MCSA(WindowsServer 2K8) MCTS(WindowsServer 2K12) MCTS(ExchangeServer 2013) MCTS(Office365 Identities and Requirements) MCTS(Enabling Office 365 Services)

推荐答案

Akshay,

Hi Akshay,

azcopy可执行文件在Runbook中不可用.如果要将此副本计划为Runbook,则需要为其创建一个PowerShell脚本,该脚本不使用azcopy.

the azcopy executable is not available in the runbook. If you want to schedule this copy as a runbook, you'll need to create a PowerShell script for it, which doesn't use azcopy.

您可以使用Get-AzureStorageFile和Start-AzureStorageFileCopy cmdlet将文件从文件共享复制到blob.

You can use the Get-AzureStorageFile and Start-AzureStorageFileCopy cmdlets to copy the files from fileshare to blob.


这篇关于Azcopy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆