Windows Azure的Powershell的文件复制到虚拟机 [英] Windows Azure Powershell Copying file to VM

查看:383
本文介绍了Windows Azure的Powershell的文件复制到虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Windows Azure Pwershell复制一个zip文件到VM。
我已成功地连接到虚拟机的文档以下。

I am using Windows Azure Pwershell to copy a zip file into VM. I have managed to connect to VM following the Documentation.

但是,我找不到任何教程上传/复制/传输的压缩文件到VM磁盘说成C盘。

But, I cannot find any tutorial to upload/copy/transfer a zip file to VM Disk say into C drive.

任何一个可以帮我作任何链接的教程或我怎么能复制这个任何想法。

Can any one please help me giving any link for the tutorial or any idea how can I copy this.

推荐答案

您不能使用PowerShell来直接复制文件到虚拟机的操作系统磁盘(甚至其连接的磁盘之一)。还有对于虚拟机的内脏(你需要为创建自己的定制服务。直接通信没有API

You cannot use PowerShell to copy a file directly to a Virtual Machine's OS disk (or even to one of its attached disks). There's no API for communicating directly with a Virtual Machine's innards (you'd need to create your own custom service for that.

您的可以的使用PowerShell的文件上传到斑点,用设置AzureStorageBlobContent
在这一点上,你可以在你的虚拟机有等待它处理文件通知您正在运行的应用(可能带有Queue消息?)。而处理可以像文件复制到虚拟机的本地磁盘一样简单。

You can use PowerShell to upload a file to a Blob, with Set-AzureStorageBlobContent. At that point, you could notify your running app (possibly with a Queue message?) on your Virtual Machine that there's a file waiting for it to process. And the processing could be as simple as copying the file down to the VM's local disk.

这篇关于Windows Azure的Powershell的文件复制到虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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