Download presentation
Presentation is loading. Please wait.
Published byDorothy Houston Modified over 9 years ago
1
Meet Azure Files, your new Swiss Army Knife Sandrino Di Mattia (@sandrinodm) Microsoft Azure Consultant at RealDolmen Author at JustAzure.com http://fabriccontroller.net
2
AZURE FILES
3
Agenda 1)Azure Storage and Azure Files 2)Using Azure Files 3)Comparing to Azure Blobs 4)Comparing to Azure Disks 5)Scenarios & Demos
4
Azure Storage Abstractions: Blobs, Tables, Queues and now Files
5
5 Azure Storage Account (500 TB) Files Blobs Queues Tables Drives (PaaS) Disks (IaaS) Page Block
6
6 Distributed Replication Layer Massive Scale Out & Auto Load Balancing Index Layer Blob HeadTable HeadFile Share Head REST SMB 2.1 Queue Head
7
Using Azure Files
8
8 Azure Files West-Europe VM Web Site REST SMB 2.1 REST Cloud Service
9
9 Azure Files West-Europe Other Region Cloud Service VM Web Site REST Contoso (On-Premises) REST
10
PowerShell Creating a share $c = New-AzureStorageContext New-AzureStorageShare -Context $ctx 10
11
AzCopy Recursive copy AzCopy G:\Backups\ https://acc.file.core.windows.net/share/ /DestKey:key /s 11
12
SMB Creating a mapped drive net use Z: \\acc.file.core.windows.net\share /u:acc key== Persisting credentials cmdkey /add:acc.file.core.windows.net /user:acc /pass:key 12
13
SMB In Code (P/Invoke) WNetAddConnection2 (Mpr.dll) In Code (Using RedDog.Storage) CloudFileShare share = client.GetShareReference("reports"); share.Mount("P:"); 13
14
SMB Credentials: persisted per user Mapped drives: persisted per user context User can have 1 normal context User can have 1 elevated context (administrator) Use /runas to store credentials and map drives for other users 14
15
REST Using the Storage Client Library var fileClient = storageAccount.CreateCloudFileClient(); var share = fileClient.GetShareReference("reports"); if (share.Exists()) { var dir = share.GetRootDirectoryReference(); var file = dir.GetFileReference("report.txt") var content = await file.DownloadTextAsync(); } 15
16
Comparing to Azure Blobs Differences between Azure Files and Azure Blobs
17
17 AttributeAzure BlobsAzure Files Durability optionsLRS, ZRS, GRS (and RA-GRS for higher availability) LRS, GRS Accessibility / ConnectivityREST APIs – Worldwide SMB 2.1 - Within region Endpointshttp://myaccount.blob.core.windows. net/mycontainer/myblob \\myaccount.file.core.windows.net\my share\myfile.txt http://myaccount.file.core.windows.ne t/myshare/myfile.txt DirectoriesFlat namespaceTrue directory objects Case sensitivity of namesCase sensitiveCase insensitive, but case preserving Comparing to Azure Blobs
18
18 AttributeAzure BlobsAzure Files CapacityUp to 500TB containers5TB file shares ThroughputUp to 60 MB/s per block blobUp to 60 MB/s per share Object sizeUp to 200GB/block blob Up to 1TB/page blob Up to 1 TB/file Billed capacityBased on bytes writtenBased on file size Shared Access SignaturesYesNo Client librariesMultiple languages Comparing to Azure Blobs
19
Comparing to Azure Disks Differences between Azure Files and Azure Disks
20
20 AttributeAzure Data DisksAzure Files ScopeExclusive to a single virtual machineShared access across multiple virtual machines Snapshots and CopyYesNo ConfigurationConnected at startup of the virtual machine Connected after the virtual machine has started AuthenticationBuilt-inSet up with net use Caching SupportYesNo Access using RESTFiles within the VHD cannot be accessed when Virtual Machine is running Files stored in a share can be accessed Comparing to Azure Disks
21
21 AttributeAzure Data DisksAzure Files Max Size1TB Disk5TB File Share and 1TB file within share Max 8KB IOps500 IOps1000 IOps ThroughputUp to 60 MB/s per DiskUp to 60 MB/s per File Share I/O trafficUses the Virtual Disk DriverUses network bandwidth (same interface as your applications) LimitMaximum 16 disks (depending on VM size: Small = 2, Medium = 4, …) Limited to available drive letters on your VM Comparing to Azure Disks
22
Scenarios & Demos Lift and shift, hybrid applications, …
23
Scenarios Lift and Shift CMS (media folder) Central Logging Remote Backup (MySQL, …) ISO / Software Repository Centralized Configuration / IIS Shared Configuration Lucene (Near Real Time Search) NServiceBus (FileShareDataBus) On-Premises Replication High-Available FTP Server 23
24
Service Account Lift and Shift 24 ASP.NET Web Application Local DiskDFS Service Account ASP.NET Web Application Azure Files Storage Account Credentials
25
On-Premises Replication to Azure Files 25 Sync Engine (File System Watcher /...) Local DiskDFS Virtual Machine Azure Files SMB REST On-Premises West Europe
26
High-Available FTP Server 26 VM 1 Azure Files SMB Cloud Service VM 2 21 10000-1005020000-20050
27
Links
28
Introducing Microsoft Azure File Service http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft- azure-file-service.aspx Comparing with Azure Blobs and Azure Drives http://msdn.microsoft.com/en-us/library/azure/dn790517.aspx Persisting connections to Microsoft Azure Files http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/27/persisting-connections- to-microsoft-azure-files.aspx 28
29
Links Azure Files on Linux http://channel9.msdn.com/Blogs/Open/Shared-storage-on-Linux-via-Azure-Files-Preview-Part-1 Using the Azure File Service in your Cloud Services (Web and Worker Roles) http://fabriccontroller.net/blog/posts/using-the-azure-file-service-in-your-cloud-services-web-roles- and-worker-role/ Cloud Portam https://app.cloudportam.com/ Passive FTP and Windows Azure Virtual Machines http://fabriccontroller.net/blog/posts/passive-ftp-and-dynamic-ports-in-iis8-and-windows-azure- virtual-machines/ 29
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.