Remediation
From Azure Portalβ
- Go to
Storage Accounts
. - For each storage account, under
Settings
, clickConfiguration
. - Set
Allow Blob Anonymous Access
toDisabled
. - Click
Save
.
From Powershellβ
For every storage account in scope, run the following:
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<yourResourceGroup>" -Name "<yourStorageAccountName>" $storageAccount.AllowBlobPublicAccess = $false Set-AzStorageAccount -InputObject $storageAccount