Windows Azure Powershell Copying file to VM

前端 未结 6 1921
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 08:25

I am trying to use Windows Azure PowerShell to copy a zip file into VM. I have managed to connect to VM following the documentation.

But, I cannot find any tutorial

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 09:11

    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.

    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.

提交回复
热议问题