Wednesday, July 8, 2020

Azure Storage Tutorial - An Introduction to Azure Storage

Azure Storage Tutorial - An Introduction to Azure Storage Azure Storage Tutorial Tables, Blobs, Queues File Storage in Microsoft Azure Back Home Categories Online Courses Mock Interviews Webinars NEW Community Write for Us Categories Artificial Intelligence AI vs Machine Learning vs Deep LearningMachine Learning AlgorithmsArtificial Intelligence TutorialWhat is Deep LearningDeep Learning TutorialInstall TensorFlowDeep Learning with PythonBackpropagationTensorFlow TutorialConvolutional Neural Network TutorialVIEW ALL BI and Visualization What is TableauTableau TutorialTableau Interview QuestionsWhat is InformaticaInformatica Interview QuestionsPower BI TutorialPower BI Interview QuestionsOLTP vs OLAPQlikView TutorialAdvanced Excel Formulas TutorialVIEW ALL Big Data What is HadoopHadoop ArchitectureHadoop TutorialHadoop Interview QuestionsHadoop EcosystemData Science vs Big Data vs Data AnalyticsWhat is Big DataMapReduce TutorialPig TutorialSpark TutorialSpark Interview QuestionsBig Data TutorialHive TutorialVIEW ALL Blockchain Blockchain TutorialWhat is BlockchainHyperledger FabricWhat Is EthereumEthereum TutorialB lockchain ApplicationsSolidity TutorialBlockchain ProgrammingHow Blockchain WorksVIEW ALL Cloud Computing What is AWSAWS TutorialAWS CertificationAzure Interview QuestionsAzure TutorialWhat Is Cloud ComputingWhat Is SalesforceIoT TutorialSalesforce TutorialSalesforce Interview QuestionsVIEW ALL Cyber Security Cloud SecurityWhat is CryptographyNmap TutorialSQL Injection AttacksHow To Install Kali LinuxHow to become an Ethical Hacker?Footprinting in Ethical HackingNetwork Scanning for Ethical HackingARP SpoofingApplication SecurityVIEW ALL Data Science Python Pandas TutorialWhat is Machine LearningMachine Learning TutorialMachine Learning ProjectsMachine Learning Interview QuestionsWhat Is Data ScienceSAS TutorialR TutorialData Science ProjectsHow to become a data scientistData Science Interview QuestionsData Scientist SalaryVIEW ALL Data Warehousing and ETL What is Data WarehouseDimension Table in Data WarehousingData Warehousing Interview QuestionsData warehouse architectureTalend T utorialTalend ETL ToolTalend Interview QuestionsFact Table and its TypesInformatica TransformationsInformatica TutorialVIEW ALL Databases What is MySQLMySQL Data TypesSQL JoinsSQL Data TypesWhat is MongoDBMongoDB Interview QuestionsMySQL TutorialSQL Interview QuestionsSQL CommandsMySQL Interview QuestionsVIEW ALL DevOps What is DevOpsDevOps vs AgileDevOps ToolsDevOps TutorialHow To Become A DevOps EngineerDevOps Interview QuestionsWhat Is DockerDocker TutorialDocker Interview QuestionsWhat Is ChefWhat Is KubernetesKubernetes TutorialVIEW ALL Front End Web Development What is JavaScript â€" All You Need To Know About JavaScriptJavaScript TutorialJavaScript Interview QuestionsJavaScript FrameworksAngular TutorialAngular Interview QuestionsWhat is REST API?React TutorialReact vs AngularjQuery TutorialNode TutorialReact Interview QuestionsVIEW ALL Mobile Development Android TutorialAndroid Interview QuestionsAndroid ArchitectureAndroid SQLite DatabaseProgramming ... Microsoft Azure (2 Blogs) AWS Global Infrastructure Getting Started With Azure What is Azure? â€" An Introduction To Microsoft Azure CloudMicrosoft Azure Tutorial â€" Cloud Computing With AzureAzure Portal: All You Need To Know About The Azure Console Azure Services Azure Storage Tutorial â€" Tables, Blobs, Queues Tables, Blobs, Queues File Storage in Microsoft Azure Last updated on May 22,2019 27.5K Views Hemant Sharma1 Comments Bookmark 1 / 3 Blog from Azure Services Azure Storage is a Microsoft-managed cloud storage service, that provides highly available, durable, scalable and redundant storage, at a fraction of the cost, if you were to manage it manually. In this blog on Azure Storage, you will learn the different storage offerings from Azure such as tables, blobs, file storage and queues! Towards the end, we have also included a demonstration of all these services in Azure. You can also refer this tutorial for an overview on Azure Storage:Following are the topics that well be coverin g today:Why Do We Need Storage?Storage Vs DatabaseWhat is Azure Storage?Replication in AzureDemoWhy Do We Need Storage?Lets understand this using an example, consider the following architecture:This architecture is for an image processing website. We have tried to distribute the load among two classes of servers, namely website servers and backend servers. The website servers sole job would be to handle the incoming page requests for our website. The backend servers will handle any processing that would be needed corresponding to an operation, which in our case would be image processing. There are two blank entities which are unknown.The first entity will be needed to store the incoming jobs from our website servers. These jobs will be picked up by the backend servers to execute the job. Once a job has been completed, it has to be removed from this entity so that no other server picks it up to process again, since its already been processed. You might be wondering, why cant we just store this list on the backend servers? This is because, we will be needing multiple backend servers for our use case. So this list has to be present on each backend server, and on each successful job completion, all the servers will have to update their list. Now, this becomes a daunting task. Hence, we needed a better solution. Therefore, we came up with a common location which is accessible to all the backend servers, where all our jobs can be stored on a first come first serve basis, this came to be known as a queue.The second unknown entity is needed to store the processed images.We needed something which can store our images with minimum processing overhead.The obvious answer was a file system for storage. Concluding, we needed aqueue storage for our first entity, and for our second entity we needed a file system. But whydo we need a file system rather than a database for storing our images or jobs?Storage vs DatabaseFile systems not only require lower processing, they are eas y to access as well. If you store images on database, you would have to do a query request to database, every time you need an image. Imaginethe same case with a file system, it will not take that much processing because accessing a file is quite simple and light weight. Also, database storage is more expensive than file system storage. What is Azure Storage?Azure Storage is the cloud storage solution for modern applications that rely on durability, availability, and scalability to meet the need of their customers.The very first thing you need, to use storage in azure is a storage account.Storage AccountsTo use any storage type in azure, you first have to create an account in Azure. After creating an account, you can transfer data to or from services in your storage account.Create a storage account to store up to 500 TB of data in the cloud. Use the Blob storage account and the hot or cool access tiers to optimize your costs based on how frequently your object data is accessed.A sto rage account can be of two types:General PurposeBlob StorageLets discuss each one of them in detail:General Purpose Storage AccountA general purpose storage account provides a space where, it gives you access to blobs, queues, files and tables, all of these services in a unified account.A general-purpose storage account can be used to store object data, can be used as a NoSQL data store, can be used to define and use queues for message processing, and set up file shares in the cloud.As mentioned, primarily there are 4 types of storage types in azure:TablesBlobsQueuesFile StorageTablesTheAzure Tablestorage service stores large amounts of structured data. The service is a NoSQL datastore which accepts authenticated calls from inside and outside theAzurecloud.Azure tablesare ideal for storing structured, non-relational data.BlobsAzure Blobstorage is a service that stores unstructured data in the cloud as objects/blobs.Blob storage can store any type of text or binary data, such as a do cument, media file, or application installer. Blobstorage is also referred to as object storage.QueuesAzure Queuestorage is a service for storing large numbers of messages that can beaccessed from anywhere in the world via authenticated calls using HTTP or HTTPS. A singlequeuemessage can be up to 64 KB in size, and aqueuecan contain millions of messages, up to the total capacity limit of a storage account.File StorageAFile Storageshare is an SMBfileshare in Azure. All directories andfilesmust be created in a parent share. An account can contain an unlimited number of shares, and a share can store an unlimited number offiles, up to the 5 TB total capacity of the fileshare.Blob StorageBlob storage accounts are specialized in storing blob data and can also be used to choose an access tier, which allows you to specify how frequently data in the account is accessed. You can choose an access tier suitable for your storage and which suits your expenses.There are two types of access tier:Ho t:This access tier grants us the lowest latency possible. Hence, it should be used with data which is frequently accessed. Naturally, since it offers low latency it is more expensive.Cold:This access tier is less in performancethan the Hot access tier i.e offers higher latency than theformer access tier. That being said, it comes with a lesser price tag and hence can be used for data which is less frequently accessed.Moving on, both these storage account types i.e blob storage and general purpose storage account are designed to be highly available. With high availability, you can be assured that your files hosted on azure will be available 247. Andhigh availability is only possible using replication.ReplicationThere are basically 4 types of replication in Azure:Locally Redundant StorageLocally Redundant Storage (LRS) replicates your data three times within a storage scale unit i.e inside a datacenter. The datacenter resides in the region where you created your storage account.A writ e request returns successfully only when it has been written to all three replicas. Each of these replicasreside in separate fault domains and upgrade domains within one storage scale unit.Zone Redundant StorageZone-Redundant Storage (ZRS) replicates your data asynchronously across datacenters within one or two regions in addition to storing three replicas similar to LRS, thus providing higher durability than LRS. Data stored in ZRS is durable even if the primary datacenter is unavailable or unrecoverable.Geo-Redundant StorageGeo-redundant storage (GRS) replicates your data to a secondary region that is hundreds of miles away from the primary region. If your storage account has GRS enabled, then your data is durable even in the case of a complete regional outage or a disaster in which the primary region is not recoverable.Read Access Geo-Redundant StorageRead-access geo-redundant storage (RA-GRS) maximizes availability for your storage account, by providing read-only access to the d ata in the secondary location, in addition to the replication across two regions provided by GRS.Alright,now you have all the information you need. Lets go ahead and flex our fingers with the demo!DemoWe will be doing this demo in two parts:Part 1: We will try setting up a website which will be able to upload files to the blob service. Once a file is uploaded, the files details will also be added to the Azure queue, which will be used to change the background of the webpage when refreshed.Step 1: Like we mentioned before, the first step should be creating your Storage Account. Follow the instructions in the below image to do so.First, in the left pane click on Storage AccountsThen, click on AddFinally, enter all the relevant fields and Click on Create.Step 2:Thats it! We have successfully created our storage account. We have four types of storage services in our account, i.e Blobs, Queues, Files and Tables. In this Azure Storage Tutorial, Ill be demonstrating the Blob service and Qu eue Service in this part. Also, for an in-detail demo please refer to our video on Azure Storage Tutorial attached in the starting of this blog. Let us first configure the blob service. Go to your storage account, and click on Blobs.Step 3:Click on container, to create a new container. First, enter the name of the container, this should be unique to all the containers that you will be creating in this particular account. Next, assignpublic access level to it. Blobs are nothing butfiles. If you assignprivate access level, only you will be able to download the contents of this container. If you assignblob access level,any user with the link to the container of this account can access the files in it. With container access level, any user with a link gets access to the files and folders inside this container. We will choose the Blob access level for our demonstration.Finally, click on OK.Step 4: Specify the connection string of your storage account in your websites code. A connection s tring authenticates your code to interact with the specified storage account and its services. To do that simply select your storage account, then select access keys and finally copy any one of the connection strings. Paste this connection string in your websites code and you are set!Step 5:Lets start with the queue now. On your storage accounts overview page select queues.Step 6:Next, well be creating a queue. To do that, Click on Add Queue, give a relevant name to the queue and click on OK. Finally, substitute the relevant information in the code.Step 7:This is the website we have made, select the file that you want to upload, and click on upload.This is how the screen will look once the file is uploaded.With this, we have successfully added our file in the container and the queue. You can look at the same in the screens below:Now lets check if we have an entry in blob as well:Step 8: Lets go to our process page in the website to see if the entry from the queue and blob can be rea d, and yes! As you can see the image name is same.With this, we conclude the part 1 of the demo. Lets move on to part 2.Part 2:In this part of this Azure storage tutorial, we will explore the file service in azure. The File Service in Azure uses the SMB 3.0 protocol for file transfers, this service can be attached to your windows OS as if it was an external drive.Lets try this in Azure Portal Now:Step 1: Go to your storage account overview page, and select the file service.Step 2:On the next page, enter the name of your file instance, and desired size of your instance. Finally, click on OK.Step 3: Select your file service, and then click on connect.In the properties pane, copy the link as shown in the image:And paste it in notepad, so that you can differentiate the elements:The first point is the address columnThe second point is the user nameThe third point is your passwordSave, these details they will be used in your next step in this azure storage tutorial.Step 4: Right Click on your my computer icon, on your desktop and click on Map Network Drive.Step 5:Enter the first point that you copied from your notepad in the folder text box and click on finish.Step 6: On the next step, enter the username and password from notepad, and finally click on OK.Step 7: Congratulations! Your azure storage drive is ready. You can now use it, like any other drive on your computer!With this, we conclude our demo. Want to learn more about Azure? edureka! is here to help you out! You can check out our blogs in the left menu, we have extensively covered the prominent Azure Services, and this list will be updated frequently. Stay Tuned!If you are one of those, who want to learn this technology from professionals who are Microsoft Azure certified in and are leading industry experts, you are at the right place. We at edureka! are committed towards your learning. We offer courses which will help you get certified, and thus help you chase your dream work profile!Wehave come up with a curriculum which covers exactly what you would need to crack the Microsoft Exams!You can have a look at the course details forMicrosoft Azuretraining here.Furthermore, this AzureTutorial blog series will be updated frequently as we expand our blog section on Azure services, so stay tuned!Got a question for us? Please mention it in the comments section of this Azure Storage Tutorial and we will get back to you.Recommended videos for you AWS Certifications All You Need To Know Watch Now Power The Hadoop Cluster With AWS Cloud Watch Now Architecting in Cloud-III Watch Now Efficient Disaster Recovery with Cloud Computing Watch Now What Is AWS Getting Started With AWS Watch Now AWS vs Google Cloud Cloud Platform Compared Watch Now Building Scalable Application on Cloud Watch Now Cloud Computing with AWS II Watch Now Microsoft Azure Tutorial Step-By-Step Tutorial In Azure Watch Now What Is Cloud Computing? A Beginners Guide To Understanding Cloud Watch Now Architecting in Cloud-II W atch Now AWS Vs Azure Cloud Platform Comparison Watch Now AWS Tutorial A Complete Tutorial On Amazon Web Services Watch NowRecommended blogs for you AWS vs Azure: What Is The Difference? Read Article AI and IoT in FIFA: Smart Sports Read Article AWS Snowball and Snowmobile Tutorial Read Article What is Google Cloud Platform (GCP)? Introduction to GCP Services GCP Account Read Article Google Cloud vs AWS : Which Cloud Service Provider to Choose? Read Article Azure Portal: All You Need To Know About The Azure Console Read Article Raspberry Pi Tutorial: Getting Started with Raspberry Pi Read Article Introduction to Amazon CloudFormation Read Article Introduction to Internet of Things: IoT Tutorial with IoT Application Read Article Microsoft Azure Tutorial Cloud Computing With Azure Read Article Building A Kubernetes App With Amazon EKS Read Article ServiceNow Tutorial: Getting Started With ServiceNow Read Article AWS Console: Deep Dive Into AWS Management Interface Read Article Ho w To Become A Cloud Engineer? Read Article AWS Glue All you need to Simplify ETL process Read Article Cloud Security: A Guide for Cloud Users Read Article Google Cloud Services : All You Need To Know About GCP Services Read Article Understanding Amazon S3 Read Article Top 50 Salesforce Interview Questions And Answers You Must Prepare In 2020 Read Article AWS Data Pipeline Tutorial A Data Workflow Orchestration Service Read Article Comments 1 Comment Trending Courses in Cloud Computing Microsoft Certified Expert: Azure Solutions A ...6k Enrolled LearnersWeekendLive Class Reviews 5 (2250)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.