More Info:
Enable Microsoft Defender for Cloud for Storage AccountsRisk Level
HighAddress
Security, Operational MaturityCompliance Standards
CISAZURE, CBP, HITRUST, SOC2, NISTCSF, PCIDSSTriage and Remediation
- Remediation
Remediation
Using Console
Using Console
To enable Microsoft Defender for Cloud for Storage Accounts in AZURE, follow these steps:
- Log in to the AZURE portal (https://portal.azure.com/).
- In the left-hand menu, select “Security Center”.
- In the Security Center blade, select “Recommendations”.
- In the Recommendations blade, locate the recommendation for “Enable Microsoft Defender for Storage Accounts”.
- Click on the recommendation to open the details page.
- In the details page, click on the “Remediate” button.
- In the Remediate blade, review the recommended remediation steps.
- Click on the “Remediate” button to apply the recommended remediation steps.
- Wait for the remediation process to complete.
- Verify that the recommendation status has changed to “Compliant”.
Using CLI
Using CLI
To remediate the misconfiguration “Enable Microsoft Defender for Cloud for Storage Accounts” for AZURE using AZURE CLI, please follow the below steps:Step 1: Open the Azure CLI command prompt or terminal.Step 2: Login to your Azure account using the below command:Step 3: After login, set the subscription where the storage account is located using the below command:Step 4: To enable Microsoft Defender for Cloud for Storage Accounts, use the below command:Note: Replace Note: Replace
<storage_account_name> and <resource_group_name> with the actual names of your storage account and resource group respectively.Step 5: Verify the configuration by using the below command:<storage_account_name> and <resource_group_name> with the actual names of your storage account and resource group respectively.Step 6: Once the configuration is verified, you have successfully remediated the misconfiguration “Enable Microsoft Defender for Cloud for Storage Accounts” for AZURE using AZURE CLI.I hope this helps!Using Python
Using Python
To enable Microsoft Defender for Cloud for Storage Accounts in Azure using Python, you can follow these steps:Note: This code assumes that you have already set up the necessary Azure credentials and have the required permissions to enable Microsoft Defender for Cloud for the storage account.
- Install the Azure SDK for Python using the following command:
- Import the necessary modules:
- Set up the credentials for authentication:
- Create a StorageManagementClient object:
- Get the resource group and storage account names:
- Enable Microsoft Defender for Cloud for the storage account:
- Verify that Microsoft Defender for Cloud has been enabled by checking the storage account properties:

