Azure Storage
Overview of the Azure Storage service
Overview
Azure Storage is similar to AWS S3
It stores any type of text or binary data, such as a document, media file, or application installer
You can set Blob storage for private access or share contents publicly to the Internet
The "files" are called "blobs"
Azure Subscription
βββ Storage Account(s) - zero or more
βββ Container(s) - zero or more
βββ Blob(s) - zero or more (these are your files)Authentication Methods
There are three methods for obtaining access to Azure Storage
Microsoft Entra Credentials
This is the most secure and recommended approach
Storage permissions can be assigned to an Entra security principal (user/group/app/managed identity)
Account Access Key
These are highly sensitive and if exposed allow full access to all data in the storage account
When an Azure Storage account gets created, two keys are generated which provides full access to all data in the storage account
Therefore these should be monitored and protected well
SAS (Shared Access Signature) Token
A shareable link that enables granting limited access to containers in blobs within a storage account
This is similar to AWS S3 PreSigned URLs
Either an Azure Storage Account Access Key or Entra credentials can be used as the signing key to generate this token
CLI Cheat Sheet
Storage Accounts
Enumerate Storage Account Access Keys
Enumerate Storage Accounts
Storage Containers
List Storage Containers
Get
account-namefromaz storage account list | jq -r '.[].name'
Restore Deleted Storage Container
Check if Versioning is Enabled on Container
Like AWS S3 objects, Azure supports versioning of data too
Blobs (files)
View Blobs in Container
Get
container-namefromaz storage container list... jq -r '.[].name'
Check Available Blob Versions
--include vshows versions of the blobs
Stream Blob Content
View file contents without downloading the file
Get
version-idfrom checking the blob versions
Download Blobs
Downloads the file to the destination
Get
version-idfrom checking the blob versions
Last updated
Was this helpful?