Remediation
From Azure Portal
- Go to
Storage Accounts. - For each storage account, under
Settings, clickConfiguration. - Set
Allow Blob Anonymous AccesstoDisabled. - 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