Query Details
// Azure Resource Graph // Azure Storage Blob - Misconfiguration Check // https://www.linkedin.com/posts/activity-7184079321605529600-Obcd/ resources | where type == "Microsoft.Storage/storageAccounts" | extend allowBlobPublicAccess = parse_json(properties).allowBlobPublicAccess | project subscriptionId, resourceGroup, name, allowBlobPublicAccess
This query is designed to check for misconfigurations in Azure Storage Blob settings. Specifically, it looks for storage accounts that allow public access to blobs. Here's a simple breakdown of what the query does:
allowBlobPublicAccess property from the storage account's properties. This property indicates whether public access to blobs is allowed.allowBlobPublicAccess setting.In summary, this query lists all Azure Storage Accounts and shows whether they allow public access to blobs, along with their subscription ID, resource group, and name.

Steven Lim
Released: August 2, 2024
Tables
Keywords
Operators