Other Articles

Virtual Machine – Enable Defender

This check ensures that Microsoft Defender is enabled for Azure Virtual Machines to provide continuous threat protection, vulnerability assessment, and security monitoring.

Check Details

  • Resource: Azure Virtual Machine
  • Check: Ensure Microsoft Defender Is Enabled
  • Risk: If Microsoft Defender is not enabled, Virtual Machines may lack advanced threat detection, vulnerability scanning, and security monitoring, increasing the risk of undetected attacks, malware infections, and configuration weaknesses.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to Microsoft Defender for Cloud. Microsoft Defender for Cloud overview
  3. Select Environment settings. Microsoft Defender Env Settings
  4. Choose the appropriate Subscription.
  5. Under Defender plans, locate Virtual Machines. Microsoft Defender Plans
  6. Ensure the Defender plan for Servers is set to On. Defender plan for Virtual Machines
  7. Click Save to apply the configuration.

Remediation via Azure CLI

  1. Open Azure Cloud Shell or a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Enable Microsoft Defender plan for Virtual Machines:
    az security pricing create \
     --name VirtualMachines \
     --tier standard
    
  3. Verify Defender plan status:
    az security pricing show \
     --name VirtualMachines \
     --query pricingTier
    

The output should return "Standard", which confirms that Microsoft Defender for Virtual Machines is enabled.