Azure file SMB3.0 files sharing Service (3)

Source: Internet
Author: User
Tags windows support

Using the Azure File sharing service on Windows

As explained earlier, you can mount an azure file share locally as you would with a network drive through the SMB 3.0 protocol, but be aware of the different versions of Windows support for the SMB protocol:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110937984-358286433. PNG "style=" border:0px; "/>

How do I access shared file storage in Azure Windows virtual machines?

    1. Create a Windows 2012 virtual machine that can be stored in a region with your file share, such as in Beijing, or not in one area , a Beijing area in the Shanghai area

    2. Persist your access credentials, if you just mount the shared service manually, then after restarting, the system will not automatically reconnect, the way is to use Cmdkey, execute the following command:

      file.core.chinacloudapi.cn/user:< Storage-account-name>/pass:<storage-account-key>

    3. Make sure your above command is successful, and then you can mount your Azure file sharing service to your drive using the net USE command, for example:

      &NBSP;

NET use <drive-letter>: \\<storage-account-name>.file.core.chinacloudapi.cn \<share-name>

For example, in this test example:

NET use F: \\mystorageacctfile.file.core.chinacloudapi.cn\myfileshare

Then you can access the shared storage as you would access the local drive disk

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110939171-1658140135. PNG "style=" border:0px; "/>

4. Restart the server, detect whether the shared service will automatically connect, you can see the system restarts, the file share directory is automatically loaded, and then we do a simple test, we create a test directory under the directory of Windows and test files Mywindows.txt:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110940015-1719576900. PNG "style=" border:0px; "/>

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110941124-970502492. PNG "style=" border:0px; "/>

5. Open PowerShell and use PowerShell to get a list of files under the file share, and you can see the new directories and files:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110942171-1670470385. PNG "style=" border:0px; "/>

Can I mount the Azure file sharing service directly on the user's data center or on my own laptop? The answer is yes, the premise:

    1. Using a machine in your own datacenter to link to Azure's file sharing service, you must use SMB 3.0, so make sure your machine is in the SMB3.0 list, and I'm using Windows 10 in this test.

    2. SMB 3.0 must use port 445, in my test, some operators will block the port, causing the service to be inaccessible, not only in China, in other countries around the world, different operators will have similar situation, please test 445 port before testing

In this test, I used the China Telecom Broadband, my Windows 10 notebook, to successfully link to the Azure File sharing service and operate normally:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/845013/201605/845013-20160511110944859-2104728165. PNG "style=" border:0px; "/>

Note: If you have encountered the following error when using the net USE command:

System error occurred has.

so basically your Internet service provider, your firewall or isp will 445 port is blocked, please contact your administrator or operator for each operator in the US region for 445 for the development of Port, please refer to:

http://social.technet.microsoft.com/wiki/contents/articles/32346. Azure-summary-of-isps-that-allow-disallow-access-from-port-445.aspx


Azure file SMB3.0 files sharing Service (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.