More Info:
Enable Storage Blob Encryption recommendations for virtual machines.Risk Level
LowAddress
Security, Operational MaturityCompliance Standards
ISO27001, HIPAATriage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the “Monitor Storage Blob Encryption setting is not enabled” misconfiguration in Azure using the Azure console, follow the below steps:
- Log in to the Azure portal (https://portal.azure.com/).
- Navigate to the “Storage accounts” service.
- Select the storage account that you want to remediate.
- In the left-hand menu, click on “Encryption” under the “Security + networking” section.
- In the “Encryption” blade, ensure that the “Storage Service Encryption” toggle is set to “On”.
- Scroll down to the “Advanced” section and ensure that the “Monitor Storage Blob Encryption setting” toggle is also set to “On”.
- Click “Save” to apply the changes.
Using CLI
Using CLI
To remediate the “Monitor Storage Blob Encryption setting is not enabled” misconfiguration in AZURE using AZURE CLI, follow these steps:Note: Replace the placeholders If the output shows that the setting is enabled, then the misconfiguration has been remediated successfully.
- Open the AZURE CLI on your local machine or in the AZURE portal.
- Log in to AZURE using the command “az login”.
-
Check if you have the necessary permissions to remediate this misconfiguration by running the command “az role assignment list —assignee
<your email address or object ID>”. If you don’t have the necessary permissions, contact your administrator. - Enable the “Monitor Storage Blob Encryption” setting using the command “az monitor diagnostic-settings create”. Here is an example command:
<subscriptionId>, <resourceGroupName>, <storageAccountName>, <workspaceName>, and <encryptionScopeName> with the correct values for your environment.- Verify that the “Monitor Storage Blob Encryption” setting is enabled by running the command “az monitor diagnostic-settings show”. Here is an example command:
Using Python
Using Python
To remediate the “Monitor Storage Blob Encryption setting is not enabled” misconfiguration in Azure using Python, you can follow the below steps:By following these steps, you can remediate the “Monitor Storage Blob Encryption setting is not enabled” misconfiguration in Azure using Python.
- Import the required libraries:
- Authenticate and create the clients:
- Get the list of storage accounts:
- Loop through the storage accounts and check if the “Monitor Storage Blob Encryption” setting is enabled:
- If the “Monitor Storage Blob Encryption” setting is not enabled, update the storage account to enable it:
- Once the setting is enabled, you can also create an alert to monitor it:

