简体   繁体   English

在MAC上的vscode中使用cloud shell输出到本地文件

[英]Output to local file using cloud shell in vscode on a MAC

I am new to VSCode on a Mac and I am using the Cloud Shell connected to Azure where I can run all my commands without issue.我是 Mac 上 VSCode 的新手,我正在使用连接到 Azure 的 Cloud Shell,在那里我可以毫无问题地运行我的所有命令。 The problem I have is that if I want to use the export-csv command to export the information to a file I don't know how to point the output file to the Desktop of my Mac.我遇到的问题是,如果我想使用 export-csv 命令将信息导出到文件中,我不知道如何将输出文件指向 Mac 的桌面。

Is this possible or am I barking up the wrong tree?这是可能的还是我吠错了树?

When you are using cloud shell all data is executed remotely on azure terminal so the cloud is saved to a blob storage, you can run export-csv command then download the data from the blob storage.当您使用 cloud shell 时,所有数据都在 azure 终端上远程执行,以便将云保存到 blob 存储,您可以运行 export-csv 命令,然后从 blob 存储下载数据。

for more details : https://docs.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage有关更多详细信息: https : //docs.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM