- Microsoft Azure - Scenarios
- Microsoft Azure - Datacenters
- Microsoft Azure - Security
- Microsoft Azure - Applications
- Microsoft Azure - CDN
- Microsoft Azure - Tables
- Microsoft Azure - Queues
- Microsoft Azure - Blobs
- Microsoft Azure - Storage
- Microsoft Azure - Fabric Controller
- Microsoft Azure - Compute Module
- Microsoft Azure - Components
- Microsoft Azure - Windows
- Cloud Computing - Overview
- Microsoft Azure - Home
Microsoft Azure Advanced
- Microsoft Azure - Upgrades
- Microsoft Azure - Health Monitoring
- Azure - Orchestrated Recovery
- Azure - Security Reports & Alerts
- Microsoft Azure - Create a Group
- Microsoft Azure - Self-Service Group
- Azure - Self-Service Password Reset
- Azure - Personalize Company Brand
- Microsoft Azure - Personalize Access
- Microsoft Azure - Disk Caching
- Microsoft Azure - Disk Configuration
- Microsoft Azure - Scalability
- Microsoft Azure - Websites
- Azure - Data Import & Export Job
- Azure - Forefront Identity Manager
- Azure - Multi-Factor Authentication
- Azure - Self-Service Capabilities
- Microsoft Azure - Backup & Recovery
- Azure - Application Deployment
- Azure - Setting Up Alert Rules
- Azure - Monitoring Virtual Machines
- Microsoft Azure - PowerShell
- Microsoft Azure - Traffic Manager
- Azure - Site-to-Site Connectivity
- Azure - Point-to-Site Connectivity
- Azure - Endpoint Configuration
- Azure - Deploying Virtual Machines
- Azure - Create Virtual Network
- Microsoft Azure - Management Portal
Microsoft Azure Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Microsoft Azure - Blobs
Let us first understand what a Blob is. The word ‘Blob’ expands to Binary Large OBject. Blobs include images, text files, videos and audios. There are three types of blobs in the service offered by Windows Azure namely block, append and page blobs.
Block blobs are collection of inspanidual blocks with unique block ID. The block blobs allow the users to upload large amount of data.
Append blobs are optimized blocks that helps in making the operations efficient.
Page blobs are compilation of pages. They allow random read and write operations. While creating a blob, if the type is not specified they are set to block type by default.
All the blobs must be inside a container in your storage. Here is how to create a container in Azure storage.
Create a Container
Step 1 − Go to Azure portal and then in your storage account.
Step 2 − Create a container by cpcking ‘Create new container’ as shown in following image.
There are three options in the Access dropdown which sets the permission of who can access the blobs. ‘Private’ option will let only the account owner to access it. ‘Pubpc Container’ will allow anonymous access to all the contents of that container. ‘Pubpc blob’ option will set open access to blob but won’t allow access to the container.
Upload a Blob using PowerShell
Step 1 − Go to ‘Windows PowerShell’ in the taskbar and right-cpck. Choose ‘Run ISE as Administrator’.
Step 2 − Following command will let you access your account. You have to change the fields highpghted in all the commands.
$context = New-AzureStorageContext -StorageAccountName tutorialspoint StorageAccountKey iUZNeeJD+ChFHt9XHL6D5rkKFWjzyW4FhV0iLyvweDi+Xtzfy76juPzJ+mWtDmbqCWjsu/nr+1pqBJj rdOO2+A==
Step 3 − Run the following command. This will get you the details of you Azure account. This will make sure that your subscription is all set.
Get-AzureSubscription
Step 4 − Run the following command to upload your file.
Set-AzureStorageBlobContent -Blob Montiorlog.png -Container images -File "E:MyPicturesMonitorLog.png" -Context $context -Force
Step 5 − To check if the file is uploaded, run the following command.
Get-AzureStorageBlob -Container $ContainerName -Context $ctx | Select Name
Download a Blob
Step 1 − Set the directory where you want to download the file.
$localTargetDirectory = "C:UsersSahilDownloads"
Step 2 − Download it.
$BlobName = "Montiorlog.png" Get-AzureStorageBlobContent -Blob $BlobName Container $ContainerName -Destination $localTargetDirectory -Context $ctx
Remember the following −
All command names and file names are case sensitive.
Commands should be in one pne or should be continued in the next pne by appending ` in the preceding pne (`is continuation character in PowerShell)
Manage Blobs using Azure Storage Explorer
Managing blobs is pretty simple using ‘Azure Storage Explorer’ interface as it is just pke Windows files and folder explorer. You can create a new container, upload blobs, see them in a psted format, and download them. Moreover, you can copy them to a secondary location in a very simple manner with this interface. The following image makes the process clear. As can be seen, once an account is added, we can select it from the dropdown and get going. It makes operating Azure storage very easy.
Advertisements