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 "{{resource-group-name}}" `
-Name "{{storage-account-name}}"
$storageAccount.AllowBlobPublicAccess = $false
Set-AzStorageAccount -InputObject $storageAccount