1

我有一个在 Azure 云服务中运行的 Asp.Net Web 角色。现在我已经在 Azure 数据中心创建了一个虚拟机。而且我还创建了一个共享文件夹来存储我的文件(.xls、.csv .. 文件)。如何从我的网络角色访问 VM 中存在的共享文件夹文件?

谢谢

阿伦。

4

1 回答 1

2

Shared folders are mainly for on-premise environment and in cloud you would have to think quite different. In cloud environment, a machine is placed behind a very tightly closed network system and any port you will open in your VM will be configured for external user through firewall. Accessing a shared folder would require you to enable file sharing in your machine first and the configuring proper ports. Similar configuration is needed on other Cloud Service VM as well which is more complex. The fact is when you are in cloud you should think beyond shared folder approach.

What you really need is to use cloud storage i.e. Windows Azure Blob Storage to share content between multiple machines. Price wise it is about ~10 cents/GB/Month and if you keep your VM and Azure Storage in same datacenter there is no bandwidth cost. Once configured your Azure VM and Azure Cloud service can access the Azure Blob storage very easily over HTTP/HTTPS. Learn more about Azure Storage here.

于 2013-03-13T20:46:13.567 回答