Web job to read from csv in azure storage blob

Brass Contributor

Hi

I have a console job which does two things 

1) run SPO power-shell  script  in c# console job, writes the output to csv

2) c# reads from file and writes to sharepoint online

 

I have packaged this as azure web job and deployed to azure portal, Now i get errors first it is not able to write to csv file 

second steps also fails

So i am trying to add a csv file to azure storage blob type ( which can delete existing file and write new one everytime, so powershell can write to blob storage, then c# need to read from this storage. 

 

Is there any better approach then this or if this is fine can some you help me with example how to read /write from blob and where to save the file.

 

Thanks,

 

 

 

 

2 Replies

not sure if the following link can help you achieve your goal.

https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-blobs

 

I used the PSObject which was return by invoker function in PS in C#  and used that to populate the data. So i did not had to use the blob storage.

 

Thanks for your help