Microsoft Azure Blob Storage
Logs and files stored in Microsoft Azure Blob Storage can be accessed and processed using this extension. It allows you to upload your logs, data dumps like CSV and JSON files to an Azure Blob Storage container and use them in your investigations and hunts.
| Category | File storage |
| Direction | Query source |
| Sign-in | Client Secret, Shared Access Signature (SAS), Account Key |
| Query languages | SQLite |
| Website | https://azure.microsoft.com/en-us/services/storage/blobs/ |
Before you start
Huntbase can sign in to Microsoft Azure Blob Storage with any of these methods: Client Secret, Shared Access Signature (SAS), Account Key. Pick one, create the credential in Microsoft Azure Blob Storage, then keep it to hand for the Connect step.
Client Secret
Client secret authentication using Azure AD application credentials (client ID and client secret).
- In the Microsoft Entra admin center, go to Entra ID › App registrations, select New registration, and register the app.
- Copy the Application (client) ID from the app's overview page.
- Select Certificates & secrets › Client secrets › New client secret, then select Add. Copy the secret value now: it is only displayed once.
- In the Azure portal, open the storage account or container, go to Access control (IAM) › Add › Add role assignment, and assign Storage Blob Data Reader to the app.
Permissions:
- Storage Blob Data Reader, scoped to the container or storage account
Shared Access Signature (SAS)
Shared Access Signature (SAS) authentication using a SAS token for accessing Azure Blob Storage.
- In the Azure portal, open the storage account and go to Data storage › Containers.
- Select the checkbox next to the container, then select the container's More button (...) and choose Generate SAS.
- Set Signing method to Account key, choose a Signing key, and set Stored access policy to None.
- Under Permissions, select only the permissions needed to read the data, then set the Start and Expiry date and time.
- Select Generate SAS token and URL and copy the Blob SAS token. It is only displayed once.
Account Key
Account key authentication using the storage account name and account key for accessing Azure Blob Storage.
- In the Azure portal, open the storage account.
- Under Security + networking, select Access keys, then select Show keys.
- Under key1, copy the Key value.
Permissions:
- To view access keys you need a role that includes
Microsoft.Storage/storageAccounts/listkeys/action, such as Owner, Contributor or Storage Account Key Operator Service Role.
- An account key gives full access to all data in the storage account. Prefer the Client Secret or Shared Access Signature (SAS) method, as Microsoft recommends.
- Rotating a storage account key revokes every SAS token signed with it. Generate a new SAS token after you rotate keys.
- Role assignments can take up to 10 minutes to take effect.
For the vendor's own instructions, see Microsoft guide to managing blob containers and SAS tokens.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Microsoft Azure Blob Storage
- Go to Connections and click New connection, or click New connection on the Microsoft Azure Blob Storage product page.
- On Product, pick Microsoft Azure Blob Storage and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Microsoft Azure Blob Storage lives:
| Field | Required | Notes |
|---|---|---|
| Account Name | Yes | The storage account name only, not the full blob.core.windows.net URL. |
| Container Name | Yes | The name of the Azure Blob Storage container. |
Credentials
Choose a Method, enter a Credential label (for example Production), then fill in the fields for that method.
Client Secret
| Field | Required | Notes |
|---|---|---|
| Azure Client ID | Yes | Secret — not shown again after you save it. |
| Azure Client Secret | Yes | Secret — not shown again after you save it. |
Shared Access Signature (SAS)
| Field | Required | Notes |
|---|---|---|
| Azure SAS Token | Yes | The Blob SAS token from the portal. The portal gives it without a leading ?, and that is fine. Secret — not shown again after you save it. |
Account Key
| Field | Required | Notes |
|---|---|---|
| Azure Account Key | Yes | Secret — not shown again after you save it. |
Query it
Once connected, Microsoft Azure Blob Storage can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL across this source and every other connected source. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog