Search code examples
azurepowershellvisual-studio-codeazure-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. 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.

Is this possible or am I barking up the wrong tree?


Solution

  • 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.

    for more details : https://learn.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage enter image description here