Azure provides fully hosted in the cloud file sharing services, sharing of these items can be accessed via industry-standard server message block (SMB) protocol. Azure cloud file sharing may or Windows, Linux and macOS local deployment while loading.
As we all know, two years ago, because the virus "bad bunny" struck, the National Internet Emergency Response Center and other security agencies recommended to close the 445 and 139 port on your computer and network equipment, the domestic carriers are basically closed two ports, the Azure file storage is the use of the SMB protocol, resulting in many customers can not access files stored properly Azure locally.
What if local applications have access to file-sharing cloud storage how to do it, in fact, we can deploy their own NFS service in the cloud, you can achieve the same effect.
1. First, we create a virtual machine on Windows Azure (the process of creating a little), add the role -NFS server in the Server Manager
2, NFS server roles after installation is complete, you can create a new share
3, where the configuration file, select the NFS share - Fast
4, the path of the shared folder may be defined in the piece from the roll
5, authentication, I chose no server authentication, you can choose according to corporate security policy requirements
6, the share permissions, we can add access to a computer, I choose here all computing face, I will be back on the NSG restrictions by IP whitelist
7, view the results successfully created
8. At this point, we still can not successfully access the contents of the shared folder, and the client does not have permission to mount prompt ( "Permission Denied") to create a file or folder, Windows itself does not exist under Unix anonymous accounts ID = - 2 the "user", we need this special user ID added to the NTFS access control rights corresponding (ACL) inside, and there we use nfsfile command (which requires only be used after the NFS role service installed) to carry out.
nfsfile /v /ru=-2 /rg=-2 /s /cx F:\shares\gpufile
9, again using the client mount 192.168.0.1:/gpufile z: command, mount, you can successfully visit.