Accessing Mount from Azure Files in Cloud Service

依然范特西╮ 提交于 2020-01-14 22:29:23

问题


I successfully created and manually tested a share in Azure Files using instructions in this blog post. However, my deployed cloud service can't create a mount from C# or access the mount (create or list files) if I create it by remoting into the role.


回答1:


I was able to resolve this by calling map using the P/Invoke method explained here. The only trick was that I had to build the storage layer from source and updating the package references since it used a much older version of the Azure storage library.

If you're interested in what didn't work:

My first attempt was using a process and invoking 'cmd', but this failed completely I believe because of permissions, but I wasn't able to find out exactly why. My next attempt was a startup script to mount the drive. This resulted in a Disconnected drive that nothing could access even when I ran it with elevated permissions.



来源:https://stackoverflow.com/questions/28664358/accessing-mount-from-azure-files-in-cloud-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!