Introduction to Windows Azure Storage sharing configuration
We all know that the VMS created on Windows Azure are all in. vhd format files, so that we can use Azure PowerShell to upload a local hyper-V VM to the Windows Azure storage container. And then mount it to the new Windows Azure VM, so what if we're going to upload a local software to the Windows Azure working VM, we know that all Microsoft software charges are pretty high, and of course includes Windows Every service on azure, if we need a SQL Server database server, if you're using a service that's architected on Windows Azure, that's too expensive, so a lot of people think about one VM and then install the SQL Server service to achieve the effect. If you install a VM with SQL Server's Hyper-V service installed locally and then upload it to Windows Azure, then the file is too large, and the transmission is too slow, and we need to do it the same way in the future if we need to, what good way? That is, we directly upload the SQL Server ISO to windowsazure, if necessary, create a new VM directly, and then mount the ISO can be installed, which is both convenient and fast. The same new problem comes again, because Windows Azure PowerShell uploads files currently only support. vhd format files, not supporting other format files, so ISO format files are not uploaded, so we need to use other methods, of course, if you really want to use Windows Azure uploads a file, that is, you need to create a VHD file locally, then mount it to a local Hyper-V virtual machine, then copy the file to the VHD file and upload the VHD file with the data to windowsazure. and then by adding additional disks to the corresponding VM, so also to achieve the corresponding effect, that in addition to the way we have a method, that is, we can use the Windows Azure comes with the file system, the current Windows Azure file system features in the preview state , there is a certain defect, and later will be updated to achieve a certain effect. However, the current file system functionality has already satisfied the file system upload, of course, some people say that using the Azure Storage Explorer tool is also possible, but after testing, the tool does not have the upload progress display, so also not meet the personal needs, that when we upload files to Windows Azure , how does Windows Azure VMS read files in non-VHD format, and the solution is that IThe Windows Azure Storage sharing configuration implemented today, see below:
Summary of features: How to upload a local file to an Azure storage account in the following ways:
1. Azure PowerShell uploads a VHD-formatted file if a non-VHD file can copy the file to the VM where the VHD file is mounted for data transfer
2. Compress large files into multiple small files by compressing them and uploading them via the Azure Storage Explorer tool
3. How to FTP
It is understood that currently the file system on Windows Azure has a single file system that supports 5T of space, and then a VM up to
Mount 30 network shared storage, a virtual machine can hang up to 30 network shared storage
Windows Azure VMS mount or access non-VHD files placed under the storage account
1. Store the non-VHD file in the VHD file, and then mount the VHD file to the specified VM
2. Map the storage directory to the specified VM by storing it in a shared way
If you have a child shoe that requires the Azure Storage Explorer tool, you can use the following:
https://azurestorageexplorer.codeplex.com/
Upload does not show progress, so it is not recommended to use
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image002" src= "http://s3.51cto.com/wyfs02/M00/6F/DE/wKiom1WrzCiR9EgGAADZXWTxQM4461.jpg" height= "268"/>
How to use Azure file storage
http://www.windowsazure.cn/zh-cn/documentation/articles/storage-dotnet-how-to-use-files/
The first is to create an Azure storage account
Create an Azure storage account
https://msdn.microsoft.com/zh-cn/library/dn806380
Load shares from Azure virtual machine
Running in PowerShell in Windows Server 2012
Note: The account and password information are the information of the storage account.
650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image004" src= "http://s3.51cto.com/wyfs02/M01/6F/DB/wKioL1WrzgjCdz_3AACZN2_kvNg345.jpg" height= "287"/>
Then, the key file is viewed:
650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image006" src= "http://s3.51cto.com/wyfs02/M01/6F/DE/wKiom1WrzCjBmGA5AACVEgBjYOk374.jpg" height= "/>"
We can click the Copy key to copy the host access key
650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image008" src= "http://s3.51cto.com/wyfs02/M02/6F/DB/wKioL1WrzgjzTGQvAACh0FqIah4852.jpg" height= "283"/>
Once the prerequisites are ready, we need to do the next step.
You need to run the following command under Azure PowerShell: Create a context for your storage account and key
psc:\> $ctx =new-azurestoragecontext Iternaldata ala9obxzeonvakmmxpjxoksvo+ o0h1wqbccw1mpszweegp2pm9vd5ifxnso2zrzskzt996nrmzyqat/bl4oukw==-endpoint core.chinacloudapi.cn Note: $ctx = New-azurestoragecontext Storage Account Storage Account key format
650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image010" src= "http://s3.51cto.com/wyfs02/M01/6F/DB/wKioL1WrzgjiiFV3AABjzNvcpS0197.jpg" height= "Up"/>
$s = New-azurestorageshare Files-context $ctx
650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image012" src= "http://s3.51cto.com/wyfs02/M00/6F/DB/wKioL1WrzgnxslWeAABkbr70Ar0584.jpg" height= "/>"
The following command is performed in PowerShell on a Windows system to PS c:\users\gavin> Cmdkey/add:iternaldata.file.core.chinacloudapi.cn/user: iternaldata/pass:ala9obxzeonvakmmvo+o0h1wqbccw1mpszweegp2pm9vd5ifxnso2zrzskzt996nrmzyqat/bl4oukw== Note: Iternaldata is the storage account for my current environment, followed by the storage account secret key
650) this.width=650; "title=" clip_image014 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image014" src= "http://s3.51cto.com/wyfs02/M01/6F/DB/wKioL1Wrzgnwx3TKAACkjCXLdVY583.jpg" height= "202"/>
Mount a file share with saved credentials
PS c:\users\gavin> net use Z: \\iternaldata.file.core.chinacloudapi.cn\files (note: Z drive character followed by \ \ requires a space)
There is a network disk on the WindowsServer:
650) this.width=650; "title=" clip_image016 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image016" src= "http://s3.51cto.com/wyfs02/M01/6F/DE/wKiom1WrzCnTg7wJAADBL1HAgU0783.jpg" height= "281"/>
We found that the size of the network disk is 5T
650) this.width=650; "title=" clip_image018 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image018 "src=" http://s3.51cto.com/wyfs02/M02/6F/DF/wKiom1WrzCmjUV71AADvpjVL_Wk754.jpg "height="/>
This article is from the "Gao Wenrong" blog, make sure to keep this source http://gaowenlong.blog.51cto.com/451336/1676211
Introduction to Windows Azure Storage sharing configuration