'Azure Automation write data into a csv in a storage account in append

There is a way to write into a csv file, stored in a storage account, in append from azure automation?

locally i do this with powershell:

Add-Content $File ('"MAIL"^"OBJECTID"^"COMPANY"^"OTHERMAILS"^"MEMBERSHIP"')
 
$Users1 = Get-AzureADUser 
foreach ($user in $Users1){
    
     $Groups = Get-AzureADUserMembership -ObjectId $user.ObjectId

         foreach ($group in $Groups){

            ('"' + $user.Mail + "^" + $user.ObjectId + '^' + $user.CompanyName + "^" + $user.OtherMails + "^" + $group.DisplayName +  '"') | Out-File -FilePath $File -Append


     }
}

For example i get all user in my azure ad and i export it into a csv in append. Is possible to replicate it from azure automation to azure storage account?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source