Windows Azure File Share Services--file Service

Source: Internet
Author: User

How do I share files between virtual machines deployed on Windows Azure? For example, Web Server A and Web Server B make up a load-balanced cluster, and two servers require a shared directory to store user-uploaded files. In general, the first thing you might think of is to open a shared directory or NFS service (Linux) on a virtual machine. In fact, the Windows Azure file sharing service is a good solution to this problem, and does not require that you open a shared directory on a virtual machine or provide NFS services.

The file sharing service is part of the Windows Azure Storage service. Each storage account (Storage accounts) has a file sharing service endpoint (Endpoint) that allows users to create file sharing services through the file sharing service endpoint of the storage account.

    • Each storage account can create multiple file sharing services.
    • Each file sharing service has a maximum capacity of 5TB.
    • A maximum of 1TB per file stored in the File share service.
    • File sharing uses the SMB 2.1 protocol, which will support SMB 3.0 in the future.
    • File services cannot be used across data centers. For example, a virtual machine in Beijing cannot mount a file sharing service in Shanghai.
    • File services can only be created and maintained using PowerShell.

Next, we'll create a file sharing service and mount it to the virtual machine for use.

Locate and record the name of the storage account, the file service terminal point (Endpoint), and the primary access key (primary access keys). For example:

Storage account[Storage account name]:myteststoragefile service endpoint[file sharing service Terminal point]:https:// myteststorage.file.core.chinacloudapi.cn/Primary key[Primary access key]:hpvhefyfggwib8lb+oxxpms0tc==

Define the current Storage account context (context), which is: Select the storage account you want to create the file share service for.

$ctx=new-azurestoragecontext [Storage account name] [Primary access key]

Create a file sharing service

$ctx

View File Sharing Services

$ctx

Mount the File share service in Windows Server, [Drive letter] is a valid, non-occupied Windows file system drive letter, for example: Z:

NET use [disk character] \\[storage account name].file.core.chinacloudapi.cn\[File share service name]/u:[storage account name] [Primary access key]

After executing the above command, a new drive letter appears in the Windows Server file system, opening the drive letter to access the file sharing service created in the previous step.

The file sharing service can also be mounted and used on Linux systems, but CIFS protocol support is required. Individuals are not recommended to mount and use file sharing services in a production environment through a Linux system. You want Windows Azure to support NFS-based file sharing services in the future.

Windows Azure File Share Services--file Service

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.