Reputation: 667
I would like to know your advice on the below scenario:
We have Azure Function (not durable function) and output of the function spouse to create a file and copy it to VM folder (a shared folder on VM) on the same subscription. Express route V NET already configured.
Can you please advise how this can be configured?
BTW, we don't want to use ASE.. and logic apps. Thanks for the reply.
Regards, DK.
Upvotes: 0
Views: 315
Reputation: 18387
The easiest way is:
Map a folder in your vm pointing to Azure Files:
https://learn.microsoft.com/en-us/azure/storage/files/storage-files-quick-create-use-windows
and create files on it using regular c# with Azure Storage SDK:
CloudFileDirectory dir = root.GetDirectoryReference(DemoDirectory);
await dir.CreateIfNotExistsAsync();
CloudFile file = dir.GetFileReference(ImageToUpload);
await file.UploadFromFileAsync(ImageToUpload, FileMode.Open);
Upvotes: 1