Azure Storage

*Azure Storage Services:




What is Azure Storage?


The Azure Storage platform is Microsoft's cloud storage solution for modern data storage scenarios. Azure Storage offers highly available, massively scalable, durable, and secure storage for a variety of data objects in the cloud.


What is Blob storage in azure?


Azure Blob Storage is Microsoft's object storage solution for the cloud. Blob Storage is optimised for storing massive amounts of unstructured data. Unstructured data is data that doesn't adhere to a particular data model or definition, such as text or binary data



Types of Storage:-


1.Azure Blob:- Binary Large Objects for unstructured data. 


2.Azure File:- Sharing of files among multiple virtual machines.


3.Azure Queue:- 


— 64kb.

— 7 Days Max.


4.Azure Table:- Structured NoSQL Data.



Azure Account Types:- (All are encrypted using SSE.)


1.General Purpose V2 Account.


2.General Purpose V1 Account.


3.Blob Storage Account.




Features of Azure Storage Account:- 


  1. Durable and Highly Available:- Save in case of transient hardware Failure or Natural disaster.


  1. Secure:- Data is encrypted.


  1. Scalable:- Increase or decrease infrastructures.


  1. Managed:- Azure handles hardware Maintenance, updates and critical issues.


  1. Accessible:- Data is accessible from anywhere in the World over HTTP or HTTPS.



1. Blob Storage:- Blob storage is optimised for storing massive amounts of unstructured data, such as text or Binary data.




Blob Storage used for:- 


1. Serving image or documents directly to a browser.

2. Storing files for distributed access.

3. Streaming video and Audio.

4. Storing data for backup and restore, Disaster recovery and archiving.

5. Storing data for analysis by an on-promises or azure hosted service.



—> Objects in Blob storage can be associated from anywhere in the world via HTTP or HTTPS.



Blob Storage Offers 3 types of resources:


1.The Storage Account. 

2.A Container in the storage account.

3.A Blob in a container.



Container:- A container organizes a set of blobs, similar to a directly in a file system. A storage account can include an unlimited no. of containers, and a Container can store an unlimited no. of blobs.



Azure Storage Support 3 Types of Blobs:-


  1. Block Blobs:- Store text and binary data upto 4.7 TB. Block blobs are made up of block of data that can be managed individually.


  1. Append Blobs:- Append blobs are made up of block like Block Blobs, but are optimised for append operation. Append Blobs are ideal for scenarios such as logging data from virtual machines.


3. Page Blobs:- It stores random access files upto 8TB in size page Blobs store the Virtual hard drive (.VHD) files, serve as disk for Azure virtual machines.

Page blobs are collection of 512-Bytes pages, which provide the ability to Read/Write arbitrary range of bytes. Hence page blobs are ideal for sharing index-based and sparse data structured like OS and data disk for VM and databases.


E.g. ——> Azure SQL DB uses page Blob.




2. Azure File Storage:- Multiple VM’s can share the same files with both Read and Write Access.


——> It uses server Message Block (SMB) protocol.


File share can be used for many common scenarios:-


1. Replace or Supplement on-promises file servers.

2. Lift and Shift operation.


Classic                     Hybrid

Application              Application        ——> On-premises 

+ data                       +Data                 ——> Cloud.




Benefits:-


1. Shared access.


2. Fully managed —> update, replacing faulty hard disk is manage by azure.


3. Resiliency —> Always available, no effect of power outage or network issue.


4. Scripting and  Tooling:

     Power shell        Azure CLI





3. Queue Storage:- Azure Queue Services is used to store and Retrieve Messages. Queue messages can be upto 64kb in size and a Queue can contain Millions of messages upto total capacity limit of a storage account.


—> Messages can remain in Queue for 7 days    — (Maximum)



Common Uses:- 


  1. Creating a Backlog of work to process asynchronously.
  2. Passing Messages from an azure web role to an azure worker role.



Queue Service Concept:-



Storage Account                                 Queue 


                                                              Image to download

My Account                                          Image to resize


https://mystorageaccount.queue.core.windows.net/   <queue>





4. Table Storage:- Azure table storage is now part of azure Cosmos DB.


— It stores structured NoSQL data in the cloud. NoSQL data store means which accept authenticated calls from inside and outside the Cloud.

— You can use table storage to store flexible datasets like user data for web application address Books or other Metadata.



Common Uses of table storage are:- 


1. Storing TB’s of structured data capable of serving web scale applications.

2. Quickly Queuing data using a clustered index.


Table Storage contains component’s 

              |

Collection of entities 

              |

Set of properties.





Azure Storage Account Lab:- 


  1. Azure portal:


— All Services                       — Storage Accounts

— Create storage account.

— Subscription                      — Free.

— Resource group                 — rg-storage 

— Storage_name                   — my-storage 

— Location                            — India

— Performance                      — Standard 

— Account kind                     — Storage V2

— Replication                        — (RA-GRS)

— Access tier                         — Hot

— Secure transfer req.            — Enabled 

                                                — All Networks

— Hierarchical                       — Disabled

— Tag Name                           — Storage

                                                 — Create.

                            

  1. Go to Storage.      —> my-storage 


— Blobs 

— +Container                    — Container (anonymous read access for container and blobs).

— Ok

— Click on container        — upload

— Upload

— Click on file                  — (copy the url and paste on the browser.)


— Come back to Container                        

— Access Policy

— Private

— Save.



                   

Azure Storage Security Features:-


  1. Go to Storage Account.


— my-storage


1.Access Key:              Primary Key  (Key1) 

                                     Secondary Key (Key2)


2.Encryption:            — Access Policy.


3.Shared Access Signatures:


4.Firewall and Virtual Network:


5.Advance Threat Protection:  Email update.



Labs:——————>



Step1. Go to Storage accounts.


— storage

— Under Settings

—Access keys             — Regenerate as per need.


Step2.  Encryption.      — Use your own key 


 Key vault                    

— Create a new vault

 Access policies           — add new

— Select principal           — enter user’s email 

— Select                          — Ok

— Check permission.      — Ok


— All network can access. or selected network.

— Save

— Save.


Step3. Shared access signatures.


— Select permission as per required.

— Set datas.

— Allowed protocols             — HTTP and HTTPS

— Signing key                       — Generate SAS & connection string.



Step4. Firewalls and virtual networks.


— All network or

— Selected network 

— Firewall ✅                   — address range.



Step5. Advance threat protection.


— On          or        — off

— Save.





Monitoring:——>


— Alerts.          

— + new alert rule

— Resource               — select 

— Done

— Add condition       — as per requirements.





Azure Storage





























Previous
Next Post »