Lab13 - Understanding Azure Files Storage - Azure
Lab13 - Understanding Azure Files Storage - Azure
Azure Storage provides three types of storage accounts. Each type supports different
features and has its own pricing model. Consider these differences before you create a
storage account to determine the type of account that is best for your applications. The
types of storage accounts are:
Page 1 of 70
Cloud Computing - Azure
1
Using the Azure Resource Manager deployment model is recommended. Storage
accounts using the classic deployment model can still be created in some locations, and
existing classic accounts continue to be supported. For more information, see Azure
Resource Manager vs. classic deployment: Understand deployment models and the
state of your resources.
2
All storage accounts are encrypted using Storage Service Encryption (SSE) for data at
rest. For more information, see Azure Storage Service Encryption for Data at Rest.
3
The Archive tier is available at level of an individual blob only, not at the storage
account level. Only block blobs and append blobs can be archived. For more
information, see Azure Blob storage: Hot, Cool, and Archive storage tiers.
4
Zone-redundant storage (ZRS) is available only for standard general-purpose v2
storage accounts. For more information about ZRS, see Zone-redundant storage (ZRS):
Highly available Azure Storage applications. For more information about other
replication options, see Azure Storage replication.
General-purpose v2 accounts
General-purpose v2 storage accounts support the latest Azure Storage features and
incorporate all of the functionality of general-purpose v1 and Blob storage accounts.
General-purpose v2 accounts deliver the lowest per-gigabyte capacity prices for Azure
Storage, as well as industry-competitive transaction prices. General-purpose v2 storage
accounts support these Azure Storage services:
Page 2 of 70
Cloud Computing - Azure
Note
General-purpose v2 storage accounts offer multiple access tiers for storing data based
on your usage patterns. For more information, see Access tiers for block blob data.
General-purpose v1 accounts
General-purpose v1 accounts provide access to all Azure Storage services, but may not
have the latest features or the lowest per gigabyte pricing. General-purpose v1 storage
accounts support these Azure Storage services:
Page 3 of 70
Cloud Computing - Azure
You use a version of the Storage Services REST API that is earlier than 2014-02-14
or a client library with a version lower than 4.x, and cannot upgrade your
application.
Azure Files
Azure Files offers fully managed file shares in the cloud that are accessible via the industry
standard Server Message Block (SMB) protocol. Azure file shares can be mounted concurrently
by cloud or on-premises deployments of Windows, Linux, and macOS. Additionally, Azure file
shares can be cached on Windows Servers with Azure File Sync for fast access near where the
data is being used.
Page 4 of 70
Cloud Computing - Azure
o Diagnostic share:
An Azure file share is a convenient place for cloud applications to write their
logs, metrics, and crash dumps. Logs can be written by the application instances
via the File REST API, and developers can access them by mounting the file
share on their local machine. This enables great flexibility, as developers can
embrace cloud development without having to abandon any existing tooling
they know and love.
o Dev/Test/Debug:
When developers or administrators are working on VMs in the cloud, they often
need a set of tools or utilities. Copying such utilities and tools to each VM can
be a time consuming exercise. By mounting an Azure file share locally on the
VMs, a developer and administrator can quickly access their tools and utilities,
no copying required.
Key benefits
Shared access. Azure file shares support the industry standard SMB protocol, meaning
you can seamlessly replace your on-premises file shares with Azure file shares without
worrying about application compatibility. Being able to share a file system across multiple
machines, applications/instances is a significant advantage with Azure Files for
applications that need shareability.
Fully managed. Azure file shares can be created without the need to manage hardware or
an OS. This means you don't have to deal with patching the server OS with critical security
upgrades or replacing faulty hard disks.
Scripting and tooling. PowerShell cmdlets and Azure CLI can be used to create, mount,
and manage Azure file shares as part of the administration of Azure applications.You can
create and manage Azure file shares using Azure portal and Azure Storage Explorer.
Resiliency. Azure Files has been built from the ground up to be always available.
Replacing on-premises file shares with Azure Files means you no longer have to wake up
to deal with local power outages or network issues.
Familiar programmability. Applications running in Azure can access data in the share via
file system I/O APIs. Developers can therefore leverage their existing code and skills to
migrate existing applications. In addition to System IO APIs, you can use Azure Storage
Client Libraries or the Azure Storage REST API.
Page 5 of 70
Cloud Computing - Azure
Topology
Page 6 of 70
Cloud Computing - Azure
Back-End Topology:
Page 7 of 70
Cloud Computing - Azure
Page 8 of 70
Cloud Computing - Azure
Page 9 of 70
Cloud Computing - Azure
Click “Create”.
Page 10 of 70
Cloud Computing - Azure
Page 11 of 70
Cloud Computing - Azure
Page 12 of 70
Cloud Computing - Azure
Page 13 of 70
Cloud Computing - Azure
Click “Create”.
Page 14 of 70
Cloud Computing - Azure
Page 15 of 70
Cloud Computing - Azure
In “Virtual machines”.
Click “Add”.
Page 16 of 70
Cloud Computing - Azure
Page 17 of 70
Cloud Computing - Azure
In “Administrator Account”
Page 18 of 70
Cloud Computing - Azure
In “Save Money”.
Page 19 of 70
Cloud Computing - Azure
Page 20 of 70
Cloud Computing - Azure
In “Disks”.
Page 21 of 70
Cloud Computing - Azure
In “Networking”
Page 22 of 70
Cloud Computing - Azure
In “Management”.
Page 23 of 70
Cloud Computing - Azure
Page 24 of 70
Cloud Computing - Azure
In “Tags”.
Page 25 of 70
Cloud Computing - Azure
Click “Create”.
Page 26 of 70
Cloud Computing - Azure
Page 27 of 70
Cloud Computing - Azure
Page 28 of 70
Cloud Computing - Azure
Page 29 of 70
Cloud Computing - Azure
In “sansboundazureclassdiag”.
Click “File”.
Page 30 of 70
Cloud Computing - Azure
In “Files”
Page 31 of 70
Cloud Computing - Azure
In “File Share”
Page 32 of 70
Cloud Computing - Azure
Click “Create”.
Page 33 of 70
Cloud Computing - Azure
Click “salesdata”.
Page 34 of 70
Cloud Computing - Azure
Page 35 of 70
Cloud Computing - Azure
In “salesdata” – Properties
Page 36 of 70
Cloud Computing - Azure
Page 37 of 70
Cloud Computing - Azure
Page 38 of 70
Cloud Computing - Azure
Click “Files”.
Page 39 of 70
Cloud Computing - Azure
In “Files”
Page 40 of 70
Cloud Computing - Azure
In “Access keys”.
Page 41 of 70
Cloud Computing - Azure
Page 42 of 70
Cloud Computing - Azure
Page 43 of 70
Cloud Computing - Azure
Page 44 of 70
Cloud Computing - Azure
In “Storage accounts”.
Click “sansboundazureclassdiag”.
Page 45 of 70
Cloud Computing - Azure
Click “Files”.
Page 46 of 70
Cloud Computing - Azure
Click “salesdata”.
Page 47 of 70
Cloud Computing - Azure
Page 48 of 70
Cloud Computing - Azure
In “Upload files”
Page 49 of 70
Cloud Computing - Azure
Locate the data in your local drive where you have stored.
Click “Open”.
Page 50 of 70
Cloud Computing - Azure
Click “Upload”.
Page 51 of 70
Cloud Computing - Azure
In “Files” storage, everyone can able to view the files of other user.
Page 52 of 70
Cloud Computing - Azure
Page 53 of 70
Cloud Computing - Azure
In “Virtual machine”.
Click “WindowsVM-Azure”.
Page 54 of 70
Cloud Computing - Azure
Kindly note the Public IP address provided for “Windows Server 2008 R2”.
Page 55 of 70
Cloud Computing - Azure
In your local machine, type “mstsc” in “Run” box and click “Ok”,
Click “Connect”.
Page 56 of 70
Cloud Computing - Azure
Click “Ok”.
Page 57 of 70
Cloud Computing - Azure
Click “Yes”.
Page 58 of 70
Cloud Computing - Azure
From “Access key” you have copied below details to access the “Files” storage from Virtual machine in
Azure.
You can able to access the Files storage from virtual machine by using share path UNC: “\\”
So, you have need to modify the arguments as ‘//” with “\\” and “/” with “\”.
Page 59 of 70
Cloud Computing - Azure
In “Computer”
Page 60 of 70
Cloud Computing - Azure
Remove “https:” from the UNC path copy the “Files” storage as UNC path.
\\sansboundazureclassdiag.file.core.windows.net\salesdata
Map Network drive, in “Folder” paste the UNC path of “Files” Storage.
Click “Finish”.
Page 61 of 70
Cloud Computing - Azure
Page 62 of 70
Cloud Computing - Azure
Copy the key which you have copied from “Files“ storage and paste it in “password” box.
6fQA3ZUO6UNPS3cQjPK38CKxs2qW3akvDC2T6xaRcHSOhXbzMEQTfArggtvifTjwj0O5KUiECCKZYrS+dYn
knA==
Page 63 of 70
Cloud Computing - Azure
You have successfully mapped the “Files” storage in Azure virtual machine.
Page 64 of 70
Cloud Computing - Azure
In “Files” storage I have created one folder named “data” and created one file named “Data1.txt”.
Other users who have accessed this share also can able to access the folder(s) / file(s) of others.
Page 65 of 70
Cloud Computing - Azure
Page 66 of 70
Cloud Computing - Azure
Click “Files”.
Page 67 of 70
Cloud Computing - Azure
Click “salesdata”.
Page 68 of 70
Cloud Computing - Azure
You are able to see the folder named “data” which has been recently created.
Page 69 of 70
Cloud Computing - Azure
Note: Administrator have access to view / delete the files / folders in the “Files” storage.
Page 70 of 70