Reputation: 215
I am working on a project where I need my Azure worker role to communicate with couple of directories inside my Azure Virtual Machine.
Is it possible for a worker role to access files or folders which are present on Virtual Machine ?
Upvotes: 0
Views: 99
Reputation: 26
This article mentions using "SMB to Share a Windows Azure Drive among multiple Role Instances". I think you can use the same principle mentioned in the article to share the folders of the the VM if it is located in the same Virtual Networking (Vnet) as your Windows Azure Roles. You can find a concrete implementation of this idea in this project.
Upvotes: 1
Reputation: 16482
There are few things you can try...
You may use a FTP / FTP style setup to access the folder and files in your Azure Virtual Machine.
Make a wrapper for the file system with a web service like WebAPI.
Sync / store the files in Virtual Machine to Azure Storage Blob, then access the blobs from worker role.
Upvotes: 0