How to Enable Microsoft Defender for Storage on Blob Uploads: Step-by-Step Guide
If you’re using Azure Blob Storage to accept file uploads or store important data, securing those files should be a top priority. Azure offers a built-in feature that helps detect threats within your storage accounts. Enabling this feature is simple, and you don’t need advanced security skills to get started.
In this guide, I’ll walk you through the steps to turn on protection using the Azure portal. Everything is explained clearly so you can follow along with ease, even if you’re new to the platform.
What This Protection Feature Is
Before we dive into the steps, it’s important to understand what this feature actually does. It monitors the files stored in your account and helps detect threats like malware, ransomware behavior, or suspicious access patterns. Once activated, it runs in the background and sends alerts when something unusual is detected.
It works silently without changing how you upload or store files, which makes it ideal for teams that want added security without interrupting existing workflows.
If you haven’t already read the full breakdown of how this service works and why it matters, you can check out this beginner-friendly guide:
Read the full explanation here
Prerequisites
Before you begin, make sure the following items are in place:
- An active Azure subscription
- A storage account using either the Standard or Premium performance tier
- The Owner or Contributor role is assigned to your user account
- The Microsoft Defender for Cloud service is enabled in your subscription
⚠️ This protection is available only for supported regions and storage account types.
Step 1: Sign in to the Azure Portal
Go to https://portal.azure.com and log in using your Azure credentials. This takes you to the main dashboard where you can access all services and resources linked to your account.
Step 2: Open Your Storage Account
- In the left-hand menu, click on Storage accounts
- Select the storage account where you want to activate protection
- Confirm that the account uses a supported performance tier
Once you’re inside the storage account settings, you’re ready to move to the next step.
Step 3: Turn On Threat Detection
- Scroll down to the Security + Networking section
- Click on Microsoft Defender for Cloud
- Click the Enable on storage account button (or Edit configuration if already set)
- Select the protection plan if prompted
- Click Save
It takes just a few seconds, and once saved, the protection is immediately active for that account.
Step 4: Confirm Protection Status
Once enabled, the page will show the protection as “On.”
You can also:
- Enable malware scanning (if available in your region)
- Check what plan or pricing model is applied
- View additional settings related to scanning coverage
This step ensures that your account is fully covered and ready to alert you if anything suspicious happens.
Step 5: Check Alerts in Defender for Cloud
- Go to Microsoft Defender for Cloud from the main portal
- Click on Workload protections
- Under Storage, find your account and view any recent alerts
Each alert includes helpful details like the file name, blob path, timestamp, and type of threat detected. You can click into each alert for guidance on how to respond or investigate further.
Optional: Run a Safe Test
If you want to verify that alerts are working, you can upload a safe malware test file, such as the EICAR test file (commonly used by antivirus tools). This file is not harmful, but is recognized as a threat to trigger a test alert.
⚠️ Always test in a non-production environment. Check with your compliance team before uploading test files.
Post-Setup Best Practices
Once the setup is complete, here are a few recommendations:
- Monitor alerts regularly from Defender for Cloud
- Set up email notifications or automated workflows to handle incidents
- Combine with Private Endpoints, firewall rules, and RBAC for extra protection
- Document the configuration for audit or compliance purposes
Conclusion
Turning on this protection takes just a few minutes, but it adds a meaningful layer of defense for your file storage. Whether you’re running a small web app or managing sensitive documents, this feature gives you added visibility and peace of mind.
Now that you’ve seen how easy it is to enable, consider applying this setup to any blob storage account where security matters most.
