title: Azure automation - How to use export-csv in azure automation using portal
body: <p>I am trying to automate a small PS script. The script checks the version of powershell used for azure and writes the details to csv file to my local folder.</p>
  
  <p>I am using runbook on azure portal itself. I am getting the details with no issues. but I cannot write the details to csv files. I also checked the path provided to store csv file is valid.</p>
  
  <p><a href="https://i.stack.imgur.com/f4Wq7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f4Wq7.jpg" alt="enter image description here"></a></p>
  
  <p>What is the way out to generate a csv file using azure runbook using portal itself ?</p>