Azure Storage - Ebook
Azure Storage - Ebook
Data
/
Manage Access
Replication
Customer
Cost
Experience
Reliability Availability
Storage
Microsoft Azure Storage
❑Durable and highly available
❑ Secure
❑ Scalable
❑ Managed
❑ Accessible
https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction
My Cloud Bucket
How to access a Node.js application running on a remote
server?
ngrok provides a real-time web UI where you can introspect all HTTP traffic running
over your tunnels. Replay any request against your tunnel with one click.
Structured Data
Structured data is data that adheres to a schema, so all of the data has the same fields or properties.
Example: A database table
Types of Data
Semi-structured Data
Semi-structured data doesn't fit neatly into tables, rows, and columns. Instead, semi-structured data
uses tags or keys that organize and provide a hierarchy for the data.
Example: JSON file, XML file
Types of Data
Unstructured Data
Unstructured data encompasses data that has no designated structure to it. This lack of structure also
means that there are no restrictions on the kinds of data it can hold.
Example: email, video file, pdf
Example
Structured data
Semi-Structured data
Un-Structured data
A Simple Application Architecture
Storage
Relational
Database
Azure Blob Storage to
A Simple Application Architecture store image, videos,
media or any other files
Manage Data
Microsoft Azure
Data Security
Storage
Data Replication
Manage Access
An interesting
Application demo to
grab attention and
connect the lessons
to knowledge with
real world
Application Demo
What is Azure Storage?
Azure Storage is the modern-day solution to all storage problems. Its storage
capacity is limitless, virtually. Being a pay-as-you-go model, it gives you the
flexibility of paying only for what you have used.
Priorities while selecting your storage
01 02 03 04 05
Enabling Securing your Enabling Accelerating Optimizing
remote Work organization business migration to Cost
from Home continuity & the cloud
DR
Why Azure Storage?
Most organizations have diverse requirements for their cloud-hosted data. For example, storing
data in a specific region, or needing separate billing for different data categories. Azure storage
accounts let you formalize these types of policies and apply them to your Azure data.
What is a storage account?
A storage account is a container that groups a set of Azure Storage services together.
Why storage account?
• Combining data services into a storage account lets you manage them as a group.
• The settings you specify when you create the account, or any that you change after creation, are
• Deleting the storage account deletes all of the data stored inside it.
Storage Account
Manage Data
Microsoft Azure
Data Security
Storage
Data Replication
Manage Access
What is a storage account?
A storage account is a container that groups a set of Azure Storage services together.
How many storage accounts are needed?
Azure Storage Account
If we just create One storage account and store all our data inside it?
➢ How much cost customer ABC added on project’s storage cost in the last quarter?
➢ Give full access to user XYZ for his project1_container but make sure he doesn't get any
access to any other data.
How many storage accounts?
▪ Data diversity
▪ Cost sensitivity
▪ Management overhead
And they reached to solution, both are different though ☺
✓ Blobs
✓ Files
✓ Queue
✓ Table
✓ Disk
Storage Account
Performance
Standard storage accounts are
backed by magnetic drives and
provide the lowest cost per GB.
They're best for applications
that require bulk storage or
where data is accessed
infrequently.
Storage account kind is a set of policies that determine which data services you can include in
the account and the pricing of those services. There are three kinds of storage accounts:
• StorageV2 (general purpose v2): the current offering that supports all storage types and all
of the latest features
• Storage (general purpose v1): a legacy kind that supports all storage types but may not
support all features
• Blob storage: a legacy kind that allows only block blobs and append blobs
Microsoft recommends that you use the General-purpose v2 option for new storage accounts.
Account
Kind
Storage
Data Security Manage Data
Account
Data
/
Manage Access
Replication
Uptime is important to you and your users. If your audio files aren't available, you
might lose subscribers to another service.
How do you plan to protect your organization from region-wide outage and
practice a storage failover.
Azure Storage Redundancy
Azure Storage always stores multiple copies of your data so that it is
protected from planned and unplanned events, including transient
hardware failures, network or power outages, and massive natural
disasters.
Redundancy ensures that your storage account meets its availability
and durability targets even in the face of failures.
Azure Storage Redundancy
Uploaded File
Copy 1
Cloud Storage
Uploaded File
Cloud Storage
Uploaded File
Copy 2
Cloud Storage
Azure Storage Redundancy
Uploaded File
Copy 1
Cloud Storage
Uploaded File
Cloud Storage
Uploaded File
Copy 2
Cloud Storage
Azure Storage Redundancy
Locally redundant storage
Locally redundant storage (LRS) copies your data three times across separate racks
of hardware in a datacenter, inside one region. Even if there's a hardware failure,
or if maintenance work is happening in the datacenter, this replication type
ensures data is available for use.
With GRS, your secondary region isn't available for read access until the primary
region fails.
If you want to read from the secondary region, even if the primary region hasn't
failed, use RA-GRS for your replication type.
Azure Storage Redundancy
Zone-redundant storage
Zone-redundant storage (ZRS) copies your data in three storage clusters in a single
region. Each cluster is in a different physical location and is considered as a single
availability zone. Each cluster uses its own separate utilities for things like
networking and power.
Because all availability zones are in a single region, ZRS can't protect your data
from a regional level outage
Zone-
redundant
storage
Azure Storage Redundancy
Geo-zone-redundant storage
Data is also replicated three times to another secondary region that's paired with
it. This way, your zone-redundant data is also secure from regional level outage.
Geo-zone
Redundant
Storage
Azure Storage Redundancy
Read-access geo-zone-redundant storage
Read-access geo-zone-redundant storage (RA-GZRS) uses the same replication
method as GZRS but lets you read from the secondary region. If you want to read
the data that's replicated to the secondary region, even if your primary isn't
experiencing downtime, use RA-GZRS for your replication type.
Azure Storage Redundancy
Paired regions
A paired region is where an Azure region is paired with another in the same
geographical location to protect against regional outage. Paired regions are used
with GRS and GZRS replication types.
Replication options for Azure Storage
Azure Storage Redundancy
Azure Storage Redundancy
Exercise to check your knowledge
https://docs.microsoft.com/en-us/learn/modules/provide-disaster-recovery-
replicate-storage-data/6-knowledge-check
Storage Account
Manage Data
Microsoft Azure
Data Security
Storage
Data Replication
Manage Access
Storage Account Keys
Shared keys are called storage account keys. Azure creates two of these keys
(primary and secondary) for each storage account you create. The keys give access
to everything in the account.
Page blobs: These are optimized for random read and write
operations and can grow up to 8TB in size. Within the page
blob category, Azure offers two types of storage: standard and
premium. The latter is the most ideal for virtual machine (VM)
storage disks (including the operating system disk).
Cool Access Tier: This option is better suited for use cases
where data will remain stored for at least 30 days and is not
accessed frequently. Compared to hot access tiers, this tier
offers lower storage costs and higher access costs.
QA Team
QA Team
Premium: Premium file shares are backed by solid-state drives (SSDs) and provide consistent high performance and
low latency.
Transaction optimized: Transaction optimized file shares enable transaction heavy workloads
that don't need the latency offered by premium file shares.
Hot: Hot file shares offer storage optimized for general purpose file sharing scenarios such as team shares. This uses
standard storage hardware backed by HDDs.
Cool: Cool file shares offer cost-efficient storage optimized for online archive storage scenarios. This uses standard
storage hardware backed by HDDs.
Queue Storage
The Azure Queue service is used to store and retrieve messages. Queue messages can be up to
64 KB in size, and a queue can contain millions of messages. Queues are generally used to store
lists of messages to be processed asynchronously.
Table Storage
Azure Table storage is a service that stores structured NoSQL data in the cloud, providing a
key/attribute store with a schema-less design. Because Table storage is schema-less, it's easy to
adapt your data as the needs of your application evolve.
Disk storage
An Azure managed disk is a virtual hard disk (VHD). You can think of it like a
physical disk in an on-premises server but, virtualized. Azure-managed disks
are stored as page blobs, which are a random IO storage object in Azure.
✓ lift and shift of applications that read and write data to persistent disks
Different ways to connect to your storage
account
https://docs.microsoft.com/en-
us/azure/storage/common/storage-use-azcopy-
v10?toc=%2fazure%2fstorage%2fblobs%2ftoc.json
Storage Explorer is a GUI application developed by Microsoft to simplify access to, and the
management of, data stored in Azure storage accounts. Storage Explorer is available on
Windows, macOS, and Linux.
• https://docs.microsoft.com/en-us/learn/modules/extend-
share-capacity-with-azure-file-sync/
Azure File Sync
Azure File Sync uses your on-premises file server as a local
cache for your Azure file share.
Azure File Sync Registered Server
On-premises file
server
Azure File Sync Sync Group
File Share
Cloud Endpoint
Server Endpoint
On-premises file
server
Azure File Sync
A sync group outlines the replication topology for
a set of files or folders. All endpoints located in the
same sync group are kept in sync with each other.
✓Robocopy
A.) Create an Azure Files share and directly mount shares on the machines in the warehouse.
B.) Use a machine in the warehouse to host a file share, install Azure File Sync, and share a drive with
the rest of the warehouse.
C.) Install Azure File Sync on every machine in the warehouse and head office.
Answer: B
Azure Storage : Security Features
Protect Protect the data at rest
Secure Az Files
Encryption at Rest
All data written to Azure Storage is automatically encrypted by Storage Service
Encryption (SSE) with a 256-bit Advanced Encryption Standard (AES) cipher, and is
FIPS 140-2 compliant.
SSE automatically encrypts data when writing it to Azure Storage.
When you read data from Azure Storage, Azure Storage decrypts the data before
returning it. This process incurs no additional charges and doesn't degrade
performance. It can't be disabled.
For virtual machines (VMs), Azure lets you encrypt virtual hard disks (VHDs) by
using Azure Disk Encryption. This encryption uses BitLocker for Windows images,
and it uses dm-crypt for Linux.
Encryption in Transit
Keep your data secure by enabling transport-level security between Azure and the
client. Always use HTTPS to secure communication over the public internet.
When you call the REST APIs to access objects in storage accounts, you can enforce
the use of HTTPS by requiring secure transfer for the storage account. After you
enable secure transfer, connections that use HTTP will be refused.
This flag will also enforce secure transfer over SMB by requiring SMB 3.0 for all file
share mounts.
Role-Based Access Control
Azure Storage supports Azure Active Directory and role-based access control
(RBAC) for both resource management and data operations.
To security principals, you can assign RBAC roles that are scoped to the storage
account. Use Active Directory to authorize resource management operations, such
as configuration. Active Directory is supported for data operations on Blob and
Queue storage.
To a security principal or a managed identity for Azure resources, you can assign
RBAC roles that are scoped to a subscription, a resource group, a storage account,
or an individual container or queue.
CORS Support
Contoso stores several website asset types in Azure Storage. These types include
images and videos. To secure browser apps, Contoso locks GET requests down to
specific domains.
Azure Storage supports cross-domain access through cross-origin resource sharing
(CORS). CORS uses HTTP headers so that a web application at one domain can
access resources from a server at a different domain. By using CORS, web apps
ensure that they load only authorized content from authorized sources.
CORS support is an optional flag you can enable on Storage accounts. The flag adds
the appropriate headers when you use HTTP GET requests to retrieve resources
from the Storage account.
Auditing Access
Auditing is another part of controlling access. You can audit Azure Storage access
by using the built-in Storage Analytics service.
Storage Analytics logs every operation in real time, and you can search the Storage
Analytics logs for specific requests. Filter based on the authentication mechanism,
the success of the operation, or the resource that was accessed.
Azure Storage Security
https://docs.microsoft.com/en-us/azure/storage/blobs/security-recommendations
Check your knowledge
https://docs.microsoft.com/en-us/learn/modules/secure-azure-storage-
account/8-summary
Azure Storage Monitoring
Azure Blob storage creates monitoring data by using Azure Monitor, which is a full
stack monitoring service in Azure.
Azure Monitor provides a complete set of features to monitor your Azure
resources and resources in other clouds and on-premises.
https://docs.microsoft.com/en-us/azure/storage/blobs/monitor-blob-
storage?tabs=azure-portal
Data
Protection
‘’Who so ever has come to this world, will surely go one day. This is the
process of life.”
Management
▪ Transition blobs from cool to hot immediately if
accessed to optimize for performance
▪ Transition blobs, blob versions, and blob snapshots to a
cooler storage tier (hot to cool, hot to archive, or cool
to archive) if not accessed or modified for a period of
time to optimize for cost
▪ Delete blobs, blob versions, and blob snapshots at the
end of their lifecycles
▪ Define rules to be run once per day at the storage
account level
▪ Apply rules to containers or a subset of blobs (using
name prefixes or blob index tags as filters)
Thank You